[INFO] cloning repository https://github.com/phucducnguyen/tinyml_runtime [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phucducnguyen/tinyml_runtime" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphucducnguyen%2Ftinyml_runtime", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphucducnguyen%2Ftinyml_runtime'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f65e30e1db557ffe1328dcd0ec604819aad34cc1 [INFO] checking phucducnguyen/tinyml_runtime against try#1baf923b9c3a455162afe43e18647f494c1a4b73 for pr-151510 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphucducnguyen%2Ftinyml_runtime" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/phucducnguyen/tinyml_runtime [INFO] finished tweaking git repo https://github.com/phucducnguyen/tinyml_runtime [INFO] tweaked toml for git repo https://github.com/phucducnguyen/tinyml_runtime written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/phucducnguyen/tinyml_runtime on toolchain 1baf923b9c3a455162afe43e18647f494c1a4b73 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1baf923b9c3a455162afe43e18647f494c1a4b73" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/phucducnguyen/tinyml_runtime 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" "+1baf923b9c3a455162afe43e18647f494c1a4b73" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1baf923b9c3a455162afe43e18647f494c1a4b73" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f5eb5dd5f2d10ab622e5420f08dcbd6ceca07b94380ab27b1ad56962fda8110 [INFO] running `Command { std: "docker" "start" "-a" "1f5eb5dd5f2d10ab622e5420f08dcbd6ceca07b94380ab27b1ad56962fda8110", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f5eb5dd5f2d10ab622e5420f08dcbd6ceca07b94380ab27b1ad56962fda8110", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f5eb5dd5f2d10ab622e5420f08dcbd6ceca07b94380ab27b1ad56962fda8110", kill_on_drop: false }` [INFO] [stdout] 1f5eb5dd5f2d10ab622e5420f08dcbd6ceca07b94380ab27b1ad56962fda8110 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1baf923b9c3a455162afe43e18647f494c1a4b73" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fb2adb763c67bb0079ec304aa1261e9774b782fc434ce8db48beadfee3aba5c [INFO] running `Command { std: "docker" "start" "-a" "3fb2adb763c67bb0079ec304aa1261e9774b782fc434ce8db48beadfee3aba5c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking tinyml_runtime v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `dense_layer` [INFO] [stdout] --> src/model.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dense::{dense_layer, quantized_dense_layer}; [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: `dense_layer` [INFO] [stdout] --> src/model.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dense::{dense_layer, quantized_dense_layer}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut current_scale = self.input_scale; [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] error[E0063]: missing fields `output_scale` and `weight_scale` in initializer of `Layer` [INFO] [stdout] --> src/lib.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | Layer::Dense { [INFO] [stdout] | ^^^^^^^^^^^^ missing `output_scale` and `weight_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `output_scale` and `weight_scale` in initializer of `Layer` [INFO] [stdout] --> src/lib.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | Layer::Dense { [INFO] [stdout] | ^^^^^^^^^^^^ missing `output_scale` and `weight_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let model = SimpleModel::new(vec![ [INFO] [stdout] | _____________________^^^^^^^^^^^^^^^^- [INFO] [stdout] 52 | | Layer::Dense { [INFO] [stdout] 53 | | weights: vec![ [INFO] [stdout] 54 | | vec![0.5, 1.0], [INFO] [stdout] ... | [INFO] [stdout] 66 | | Layer::Relu, [INFO] [stdout] 67 | | ]); [INFO] [stdout] | |__________- argument #2 of type `f32` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/model.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(layers: Vec, input_scale: f32) -> Self { [INFO] [stdout] | ^^^ ---------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 51 | let model = SimpleModel::new(vec![ [INFO] [stdout] ... [INFO] [stdout] 66 | Layer::Relu, [INFO] [stdout] 67 ~ ], /* f32 */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut current_scale = self.input_scale; [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] Some errors have detailed explanations: E0061, E0063. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tinyml_runtime` (lib test) due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "3fb2adb763c67bb0079ec304aa1261e9774b782fc434ce8db48beadfee3aba5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fb2adb763c67bb0079ec304aa1261e9774b782fc434ce8db48beadfee3aba5c", kill_on_drop: false }` [INFO] [stdout] 3fb2adb763c67bb0079ec304aa1261e9774b782fc434ce8db48beadfee3aba5c