[INFO] cloning repository https://github.com/yhakami/uni-1609-project-2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yhakami/uni-1609-project-2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhakami%2Funi-1609-project-2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhakami%2Funi-1609-project-2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a62e87163a133fce26fc53a19f72955fd2e1c270 [INFO] checking yhakami/uni-1609-project-2 against master#f21fbac535ab2c3bc50db20547f4d48477357103 for pr-143193 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyhakami%2Funi-1609-project-2" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yhakami/uni-1609-project-2 [INFO] finished tweaking git repo https://github.com/yhakami/uni-1609-project-2 [INFO] tweaked toml for git repo https://github.com/yhakami/uni-1609-project-2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yhakami/uni-1609-project-2 on toolchain f21fbac535ab2c3bc50db20547f4d48477357103 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yhakami/uni-1609-project-2 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" "+f21fbac535ab2c3bc50db20547f4d48477357103" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bef8cbc1916448633aa39653062ddbe442739fb156f697f7fca00cd0d3bb31fc [INFO] running `Command { std: "docker" "start" "-a" "bef8cbc1916448633aa39653062ddbe442739fb156f697f7fca00cd0d3bb31fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bef8cbc1916448633aa39653062ddbe442739fb156f697f7fca00cd0d3bb31fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bef8cbc1916448633aa39653062ddbe442739fb156f697f7fca00cd0d3bb31fc", kill_on_drop: false }` [INFO] [stdout] bef8cbc1916448633aa39653062ddbe442739fb156f697f7fca00cd0d3bb31fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c70db73f018f2bbac4501bfc8569080a6cfac3279f770c93f9bbc54b86ff50f7 [INFO] running `Command { std: "docker" "start" "-a" "c70db73f018f2bbac4501bfc8569080a6cfac3279f770c93f9bbc54b86ff50f7", kill_on_drop: false }` [INFO] [stderr] Checking uni-1609-project-2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `force` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let force = weight * 9.81; // 9.81 in this context is G. [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_force` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `torque` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let torque = torque * gear_ratio; // 0.044 kg/cm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_torque` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `time_to_reach_top` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn time_to_reach_top( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `max_torque` should have an upper case name [INFO] [stdout] --> src/main.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | const max_torque: f32 = 1.18; // 2.16 Ncm; 1.18 Ncm [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 33 - const max_torque: f32 = 1.18; // 2.16 Ncm; 1.18 Ncm [INFO] [stdout] 33 + const MAX_TORQUE: f32 = 1.18; // 2.16 Ncm; 1.18 Ncm [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `max_speed` should have an upper case name [INFO] [stdout] --> src/main.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | const max_speed: f32 = 9.7*(10 as f32); // RPM [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `MAX_SPEED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `weight` should have an upper case name [INFO] [stdout] --> src/main.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | const weight: f32 = 4.4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `WEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `motor_torque` should have an upper case name [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | const motor_torque: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MOTOR_TORQUE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `force` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let force = weight * 9.81; // 9.81 in this context is G. [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_force` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `torque` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let torque = torque * gear_ratio; // 0.044 kg/cm [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_torque` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `time_to_reach_top` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn time_to_reach_top( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PI` is never used [INFO] [stdout] --> src/main.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | const PI: f32 = 3.14159265359; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `max_speed` is never used [INFO] [stdout] --> src/main.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | const max_speed: f32 = 9.7*(10 as f32); // RPM [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `weight` is never used [INFO] [stdout] --> src/main.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | const weight: f32 = 4.4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `motor_torque` is never used [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | const motor_torque: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `max_torque` should have an upper case name [INFO] [stdout] --> src/main.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | const max_torque: f32 = 1.18; // 2.16 Ncm; 1.18 Ncm [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 33 - const max_torque: f32 = 1.18; // 2.16 Ncm; 1.18 Ncm [INFO] [stdout] 33 + const MAX_TORQUE: f32 = 1.18; // 2.16 Ncm; 1.18 Ncm [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `max_speed` should have an upper case name [INFO] [stdout] --> src/main.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | const max_speed: f32 = 9.7*(10 as f32); // RPM [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `MAX_SPEED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `weight` should have an upper case name [INFO] [stdout] --> src/main.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | const weight: f32 = 4.4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `WEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `motor_torque` should have an upper case name [INFO] [stdout] --> src/main.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | const motor_torque: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MOTOR_TORQUE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "c70db73f018f2bbac4501bfc8569080a6cfac3279f770c93f9bbc54b86ff50f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c70db73f018f2bbac4501bfc8569080a6cfac3279f770c93f9bbc54b86ff50f7", kill_on_drop: false }` [INFO] [stdout] c70db73f018f2bbac4501bfc8569080a6cfac3279f770c93f9bbc54b86ff50f7