[INFO] cloning repository https://github.com/sbbddz/ml-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sbbddz/ml-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsbbddz%2Fml-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsbbddz%2Fml-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ba40dfbd56473fb23da99382c242e8ad27ead545
[INFO] checking sbbddz/ml-rust against 1.95.0-beta.7 for beta-1.95-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsbbddz%2Fml-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/sbbddz/ml-rust
[INFO] finished tweaking git repo https://github.com/sbbddz/ml-rust
[INFO] tweaked toml for git repo https://github.com/sbbddz/ml-rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/sbbddz/ml-rust on toolchain 1.95.0-beta.7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0-beta.7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/sbbddz/ml-rust 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" "+1.95.0-beta.7" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+1.95.0-beta.7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ad2cc9b445c60857807c32f49668d2ae37316d902b3be54a75a04958131de75f
[INFO] running `Command { std: "docker" "start" "-a" "ad2cc9b445c60857807c32f49668d2ae37316d902b3be54a75a04958131de75f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ad2cc9b445c60857807c32f49668d2ae37316d902b3be54a75a04958131de75f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ad2cc9b445c60857807c32f49668d2ae37316d902b3be54a75a04958131de75f", kill_on_drop: false }`
[INFO] [stdout] ad2cc9b445c60857807c32f49668d2ae37316d902b3be54a75a04958131de75f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.95.0-beta.7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 332861829a5911f9a800fa1a1ed107d8be665fb2fa2ce779fe4f51a8c4618fc5
[INFO] running `Command { std: "docker" "start" "-a" "332861829a5911f9a800fa1a1ed107d8be665fb2fa2ce779fe4f51a8c4618fc5", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking getrandom v0.2.12
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking ml_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `bias`
[INFO] [stdout]  --> src/double.rs:7:56
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn loss_fn(input_data: &Vec<(i32, i32)>, model: Model, bias: f32) -> f32 {
[INFO] [stdout]   |                                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_bias`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bias`
[INFO] [stdout]  --> src/double.rs:7:56
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn loss_fn(input_data: &Vec<(i32, i32)>, model: Model, bias: f32) -> f32 {
[INFO] [stdout]   |                                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_bias`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Model` is never used
[INFO] [stdout]  --> src/boolean_gates.rs:4:6
[INFO] [stdout]   |
[INFO] [stdout] 4 | type Model = (f32, f32, f32);
[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 `sigmoid` is never used
[INFO] [stdout]  --> src/boolean_gates.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn sigmoid(value: f32) -> f32 {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `loss_fn` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:10:4
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn loss_fn(input_data: &Vec<(i32, i32, i32)>, model: Model) -> f32 {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_random_float` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn get_random_float() -> f32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:26:4
[INFO] [stdout]    |
[INFO] [stdout] 26 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `train_input` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:36:4
[INFO] [stdout]    |
[INFO] [stdout] 36 | fn train_input(train_set: &Vec<(i32, i32, i32)>) -> Model {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_result` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn print_result(model: Model) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_random_float` is never used
[INFO] [stdout]  --> src/double.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn get_random_float() -> f32 {
[INFO] [stdout]   |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Model` is never used
[INFO] [stdout]  --> src/double.rs:5:6
[INFO] [stdout]   |
[INFO] [stdout] 5 | type Model = f32;
[INFO] [stdout]   |      ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `loss_fn` is never used
[INFO] [stdout]  --> src/double.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn loss_fn(input_data: &Vec<(i32, i32)>, model: Model, bias: f32) -> f32 {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `double` is never used
[INFO] [stdout]   --> src/double.rs:20:4
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn double() {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Model` is never used
[INFO] [stdout]  --> src/boolean_gates.rs:4:6
[INFO] [stdout]   |
[INFO] [stdout] 4 | type Model = (f32, f32, f32);
[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 `sigmoid` is never used
[INFO] [stdout]  --> src/boolean_gates.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn sigmoid(value: f32) -> f32 {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `loss_fn` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:10:4
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn loss_fn(input_data: &Vec<(i32, i32, i32)>, model: Model) -> f32 {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_random_float` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn get_random_float() -> f32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:26:4
[INFO] [stdout]    |
[INFO] [stdout] 26 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `train_input` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:36:4
[INFO] [stdout]    |
[INFO] [stdout] 36 | fn train_input(train_set: &Vec<(i32, i32, i32)>) -> Model {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_result` is never used
[INFO] [stdout]   --> src/boolean_gates.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn print_result(model: Model) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_random_float` is never used
[INFO] [stdout]  --> src/double.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn get_random_float() -> f32 {
[INFO] [stdout]   |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Model` is never used
[INFO] [stdout]  --> src/double.rs:5:6
[INFO] [stdout]   |
[INFO] [stdout] 5 | type Model = f32;
[INFO] [stdout]   |      ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `loss_fn` is never used
[INFO] [stdout]  --> src/double.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn loss_fn(input_data: &Vec<(i32, i32)>, model: Model, bias: f32) -> f32 {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `double` is never used
[INFO] [stdout]   --> src/double.rs:20:4
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn double() {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Matrix` is never constructed
[INFO] [stdout]  --> src/matrix.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Matrix {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/matrix.rs:13:12
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Matrix {
[INFO] [stdout]     | ----------- associated items in this implementation
[INFO] [stdout]  13 |     pub fn new(rows: usize, cols: usize) -> Matrix {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  22 |     pub fn new_rand(rows: usize, cols: usize) -> Matrix {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  32 |     pub fn from_literal(vec: Vec<f32>, rows: usize, cols: usize) -> Matrix {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  41 |     pub fn dot(&self, matrix: &Matrix) -> Matrix {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     pub fn sum(&mut self, matrix: &Matrix) -> () {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  74 |     pub fn rand(&mut self, min: f32, max: f32) -> () {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout]  82 |     pub fn at(&self, x: usize, y: usize) -> Option<&f32> {
[INFO] [stdout]     |            ^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub fn at_mut(&mut self, x: usize, y: usize) -> Option<&mut f32> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  90 |     pub fn sigmoid(&mut self) {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  99 |     pub fn row(&self, row_index: usize) -> Matrix {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub fn shape(&self) -> (usize, usize) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 114 |     fn sigmoid_value(x: f32) -> f32 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Model` is never used
[INFO] [stdout]  --> src/model.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub trait Model<'a> {
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BaseModel` is never constructed
[INFO] [stdout]   --> src/model.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | struct BaseModel<'a> {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.84s
[INFO] running `Command { std: "docker" "inspect" "332861829a5911f9a800fa1a1ed107d8be665fb2fa2ce779fe4f51a8c4618fc5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "332861829a5911f9a800fa1a1ed107d8be665fb2fa2ce779fe4f51a8c4618fc5", kill_on_drop: false }`
[INFO] [stdout] 332861829a5911f9a800fa1a1ed107d8be665fb2fa2ce779fe4f51a8c4618fc5
