[INFO] cloning repository https://github.com/peerkats/Transformer
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/peerkats/Transformer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeerkats%2FTransformer", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeerkats%2FTransformer'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fe6d481400350f614530eb0f85c8d6c825f9189b
[INFO] checking peerkats/Transformer against try#3857be5045fe74bd0f296f6f4c23db10f8857f73 for pr-156807
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeerkats%2FTransformer" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/peerkats/Transformer
[INFO] finished tweaking git repo https://github.com/peerkats/Transformer
[INFO] tweaked toml for git repo https://github.com/peerkats/Transformer written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/peerkats/Transformer on toolchain 3857be5045fe74bd0f296f6f4c23db10f8857f73
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/peerkats/Transformer 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" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4da5297e1936728914ad94c480b5eba7cb31ca2418236620ccca84705355fbd4
[INFO] running `Command { std: "docker" "start" "-a" "4da5297e1936728914ad94c480b5eba7cb31ca2418236620ccca84705355fbd4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4da5297e1936728914ad94c480b5eba7cb31ca2418236620ccca84705355fbd4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4da5297e1936728914ad94c480b5eba7cb31ca2418236620ccca84705355fbd4", kill_on_drop: false }`
[INFO] [stdout] 4da5297e1936728914ad94c480b5eba7cb31ca2418236620ccca84705355fbd4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1fd06ae37a2607e6576f08f0ad737bb1a1bcf0fed9adede5302038c5d12ff95b
[INFO] running `Command { std: "docker" "start" "-a" "1fd06ae37a2607e6576f08f0ad737bb1a1bcf0fed9adede5302038c5d12ff95b", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling transformer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]     Checking rayon-core v1.12.1
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.9.1
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod lib;
[INFO] [stdout]   | ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::lib::math::*`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::lib::math::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
[INFO] [stdout]    --> src/lib/math.rs:197:28
[INFO] [stdout]     |
[INFO] [stdout] 197 |             .map(|_| rand::thread_rng().gen_range(0.0..1.0))
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
[INFO] [stdout]    --> src/lib/math.rs:197:41
[INFO] [stdout]     |
[INFO] [stdout] 197 |             .map(|_| rand::thread_rng().gen_range(0.0..1.0))
[INFO] [stdout]     |                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod lib;
[INFO] [stdout]   | ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: duplicated attribute
[INFO] [stdout]    --> src/lib/math.rs:250:5
[INFO] [stdout]     |
[INFO] [stdout] 250 |     #[test]
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(duplicate_macro_attributes)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::lib::math::*`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::lib::math::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
[INFO] [stdout]    --> src/lib/math.rs:197:28
[INFO] [stdout]     |
[INFO] [stdout] 197 |             .map(|_| rand::thread_rng().gen_range(0.0..1.0))
[INFO] [stdout]     |                            ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `self_prefix_size`
[INFO] [stdout]    --> src/lib/math.rs:114:13
[INFO] [stdout]     |
[INFO] [stdout] 114 |         let self_prefix_size: usize = self_prefix_dims.iter().product();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_prefix_size`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tensor` is never constructed
[INFO] [stdout]  --> src/lib/math.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct Tensor<T> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/lib/math.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl<T: Clone + Send + Sync> Tensor<T> {
[INFO] [stdout]    | -------------------------------------- associated items in this implementation
[INFO] [stdout] 14 |     pub fn new(dimensions: Vec<usize>, data: Vec<T>) -> Tensor<T> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     fn flat_index(&self, indices: &[usize]) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn get(&self, indices: &[usize]) -> &T {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn get_row(&self, row: usize) -> Vec<&T> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn get_mut(&mut self, indices: &[usize]) -> &mut T {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     pub fn add_tensor(&self, other: &Tensor<T>) -> Tensor<T>
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 74 |     pub fn dot_tensor(&self, other: &Tensor<T>) -> Tensor<T>
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_rand` is never used
[INFO] [stdout]    --> src/lib/math.rs:193:12
[INFO] [stdout]     |
[INFO] [stdout] 192 | impl Tensor<f32> {
[INFO] [stdout]     | ---------------- associated function in this implementation
[INFO] [stdout] 193 |     pub fn new_rand(dimensions: Vec<usize>) -> Tensor<f32> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file_to_string` is never used
[INFO] [stdout]  --> src/lib/file.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn read_file_to_string<P: AsRef<Path>>(path: P) -> io::Result<String> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file_lines` is never used
[INFO] [stdout]   --> src/lib/file.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub fn read_file_lines<P: AsRef<Path>>(path: P) -> io::Result<Vec<String>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file_lines_iter` is never used
[INFO] [stdout]   --> src/lib/file.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub fn read_file_lines_iter<P: AsRef<Path>>(path: P) -> io::Result<impl Iterator<Item = io::Result<String>>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `file_exists` is never used
[INFO] [stdout]   --> src/lib/file.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn file_exists<P: AsRef<Path>>(path: P) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Vocab` is never constructed
[INFO] [stdout]  --> src/lib/vocab.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Vocab{
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `get`, and `get_dimensions` are never used
[INFO] [stdout]   --> src/lib/vocab.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Vocab{
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 14 |     pub fn new(data: Vec<String>) -> Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn get(&self, string: &str) -> Option<(String, u32)> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn get_dimensions(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Embedding` is never constructed
[INFO] [stdout]  --> src/lib/transformer.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Embedding {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `embed` are never used
[INFO] [stdout]   --> src/lib/transformer.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl Embedding {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 13 |
[INFO] [stdout] 14 |     pub fn new(vocab: Vocab, d_model : usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn embed(&self, sentence: &str) -> Option<Tensor<f32>> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_HOST_TO_DEVICE` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const CUDA_MEMCPY_HOST_TO_DEVICE: i32 = 1;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_DEVICE_TO_HOST` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:15:7
[INFO] [stdout]    |
[INFO] [stdout] 15 | const CUDA_MEMCPY_DEVICE_TO_HOST: i32 = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cuda` is never constructed
[INFO] [stdout]   --> src/lib/cuda.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct Cuda;
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `dot2d` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Cuda {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 21 |     pub fn dot2d(tensor: Tensor<f32>, tensor2: Tensor<f32>) -> Tensor<f32>{
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `launch_tensor_dot` is never used
[INFO] [stdout]  --> src/lib/cuda.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 |    pub fn launch_tensor_dot(a: *mut f32, b: *mut f32, c: *mut f32, m: c_int, k: c_int, n: c_int);
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMalloc` is never used
[INFO] [stdout]  --> src/lib/cuda.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 |    pub fn cudaMalloc(ptr: *mut *mut c_void, size: usize) -> i32;
[INFO] [stdout]   |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaFree` is never used
[INFO] [stdout]  --> src/lib/cuda.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 |    pub fn cudaFree(ptr: *mut c_void) -> i32;
[INFO] [stdout]   |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMemcpy` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout] 10 |    pub fn cudaMemcpy(dst: *mut c_void, src: *const c_void, size: usize, kind: i32) -> i32;
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaDeviceSynchronize` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 |    pub fn cudaDeviceSynchronize() -> i32;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_HOST_TO_DEVICE` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:23:7
[INFO] [stdout]    |
[INFO] [stdout] 23 | const CUDA_MEMCPY_HOST_TO_DEVICE: i32 = 1;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_DEVICE_TO_HOST` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:24:7
[INFO] [stdout]    |
[INFO] [stdout] 24 | const CUDA_MEMCPY_DEVICE_TO_HOST: i32 = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cublas` is never constructed
[INFO] [stdout]   --> src/lib/cublas.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub struct Cublas;
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `cublas_dot` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl Cublas{
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 30 |     pub fn cublas_dot(a: Tensor<f32>, b: Tensor<f32>) -> Tensor<f32>{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `launch_cublas_dot` is never used
[INFO] [stdout]  --> src/lib/cublas.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 |     fn launch_cublas_dot(
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMalloc` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub fn cudaMalloc(ptr: *mut *mut c_void, size: usize) -> i32;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaFree` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn cudaFree(ptr: *mut c_void) -> i32;
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMemcpy` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub fn cudaMemcpy(dst: *mut c_void, src: *const c_void, size: usize, kind: i32) -> i32;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaDeviceSynchronize` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |     pub fn cudaDeviceSynchronize() -> i32;
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
[INFO] [stdout]    --> src/lib/math.rs:197:41
[INFO] [stdout]     |
[INFO] [stdout] 197 |             .map(|_| rand::thread_rng().gen_range(0.0..1.0))
[INFO] [stdout]     |                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `self_prefix_size`
[INFO] [stdout]    --> src/lib/math.rs:114:13
[INFO] [stdout]     |
[INFO] [stdout] 114 |         let self_prefix_size: usize = self_prefix_dims.iter().product();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_self_prefix_size`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file_to_string` is never used
[INFO] [stdout]  --> src/lib/file.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn read_file_to_string<P: AsRef<Path>>(path: P) -> io::Result<String> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file_lines` is never used
[INFO] [stdout]   --> src/lib/file.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub fn read_file_lines<P: AsRef<Path>>(path: P) -> io::Result<Vec<String>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file_lines_iter` is never used
[INFO] [stdout]   --> src/lib/file.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub fn read_file_lines_iter<P: AsRef<Path>>(path: P) -> io::Result<impl Iterator<Item = io::Result<String>>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `file_exists` is never used
[INFO] [stdout]   --> src/lib/file.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn file_exists<P: AsRef<Path>>(path: P) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Vocab` is never constructed
[INFO] [stdout]  --> src/lib/vocab.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Vocab{
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `get`, and `get_dimensions` are never used
[INFO] [stdout]   --> src/lib/vocab.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Vocab{
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 14 |     pub fn new(data: Vec<String>) -> Self{
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn get(&self, string: &str) -> Option<(String, u32)> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn get_dimensions(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Embedding` is never constructed
[INFO] [stdout]  --> src/lib/transformer.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Embedding {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `embed` are never used
[INFO] [stdout]   --> src/lib/transformer.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl Embedding {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 13 |
[INFO] [stdout] 14 |     pub fn new(vocab: Vocab, d_model : usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn embed(&self, sentence: &str) -> Option<Tensor<f32>> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_HOST_TO_DEVICE` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const CUDA_MEMCPY_HOST_TO_DEVICE: i32 = 1;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_DEVICE_TO_HOST` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:15:7
[INFO] [stdout]    |
[INFO] [stdout] 15 | const CUDA_MEMCPY_DEVICE_TO_HOST: i32 = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cuda` is never constructed
[INFO] [stdout]   --> src/lib/cuda.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct Cuda;
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `dot2d` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Cuda {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] 21 |     pub fn dot2d(tensor: Tensor<f32>, tensor2: Tensor<f32>) -> Tensor<f32>{
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `launch_tensor_dot` is never used
[INFO] [stdout]  --> src/lib/cuda.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 |    pub fn launch_tensor_dot(a: *mut f32, b: *mut f32, c: *mut f32, m: c_int, k: c_int, n: c_int);
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMalloc` is never used
[INFO] [stdout]  --> src/lib/cuda.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 |    pub fn cudaMalloc(ptr: *mut *mut c_void, size: usize) -> i32;
[INFO] [stdout]   |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaFree` is never used
[INFO] [stdout]  --> src/lib/cuda.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 |    pub fn cudaFree(ptr: *mut c_void) -> i32;
[INFO] [stdout]   |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMemcpy` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout] 10 |    pub fn cudaMemcpy(dst: *mut c_void, src: *const c_void, size: usize, kind: i32) -> i32;
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaDeviceSynchronize` is never used
[INFO] [stdout]   --> src/lib/cuda.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 |    pub fn cudaDeviceSynchronize() -> i32;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_HOST_TO_DEVICE` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:23:7
[INFO] [stdout]    |
[INFO] [stdout] 23 | const CUDA_MEMCPY_HOST_TO_DEVICE: i32 = 1;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CUDA_MEMCPY_DEVICE_TO_HOST` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:24:7
[INFO] [stdout]    |
[INFO] [stdout] 24 | const CUDA_MEMCPY_DEVICE_TO_HOST: i32 = 2;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cublas` is never constructed
[INFO] [stdout]   --> src/lib/cublas.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub struct Cublas;
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `cublas_dot` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl Cublas{
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 30 |     pub fn cublas_dot(a: Tensor<f32>, b: Tensor<f32>) -> Tensor<f32>{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `launch_cublas_dot` is never used
[INFO] [stdout]  --> src/lib/cublas.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 |     fn launch_cublas_dot(
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMalloc` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub fn cudaMalloc(ptr: *mut *mut c_void, size: usize) -> i32;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaFree` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 |     pub fn cudaFree(ptr: *mut c_void) -> i32;
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaMemcpy` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub fn cudaMemcpy(dst: *mut c_void, src: *const c_void, size: usize, kind: i32) -> i32;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cudaDeviceSynchronize` is never used
[INFO] [stdout]   --> src/lib/cublas.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |     pub fn cudaDeviceSynchronize() -> i32;
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.83s
[INFO] running `Command { std: "docker" "inspect" "1fd06ae37a2607e6576f08f0ad737bb1a1bcf0fed9adede5302038c5d12ff95b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1fd06ae37a2607e6576f08f0ad737bb1a1bcf0fed9adede5302038c5d12ff95b", kill_on_drop: false }`
[INFO] [stdout] 1fd06ae37a2607e6576f08f0ad737bb1a1bcf0fed9adede5302038c5d12ff95b
