[INFO] cloning repository https://github.com/harry97uk/smart-road-01F [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harry97uk/smart-road-01F" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharry97uk%2Fsmart-road-01F", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharry97uk%2Fsmart-road-01F'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 91741a292c2849ad6c5bccdcff991f883dfd5531 [INFO] checking harry97uk/smart-road-01F against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharry97uk%2Fsmart-road-01F" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/harry97uk/smart-road-01F on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/harry97uk/smart-road-01F [INFO] finished tweaking git repo https://github.com/harry97uk/smart-road-01F [INFO] tweaked toml for git repo https://github.com/harry97uk/smart-road-01F written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/harry97uk/smart-road-01F 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66ba2c3e5a1fd2e70f032b973ad83eaf131c70623a9dabacd7467504eb87b45f [INFO] running `Command { std: "docker" "start" "-a" "66ba2c3e5a1fd2e70f032b973ad83eaf131c70623a9dabacd7467504eb87b45f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66ba2c3e5a1fd2e70f032b973ad83eaf131c70623a9dabacd7467504eb87b45f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66ba2c3e5a1fd2e70f032b973ad83eaf131c70623a9dabacd7467504eb87b45f", kill_on_drop: false }` [INFO] [stdout] 66ba2c3e5a1fd2e70f032b973ad83eaf131c70623a9dabacd7467504eb87b45f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45d2cb31566f8a765261618e7056030ab5ca28cc6c22ad549f1a691df1d30b45 [INFO] running `Command { std: "docker" "start" "-a" "45d2cb31566f8a765261618e7056030ab5ca28cc6c22ad549f1a691df1d30b45", kill_on_drop: false }` [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking weezl v0.1.7 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking half v2.2.1 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking fdeflate v0.3.1 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking png v0.17.10 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking exr v1.71.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking jpeg-decoder v0.3.0 [INFO] [stderr] Checking tiff v0.9.0 [INFO] [stderr] Checking image v0.24.7 [INFO] [stderr] Checking smart-road v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `VEHICLE_HEIGHT` and `VEHICLE_WIDTH` [INFO] [stdout] --> src/physics.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ vehicle::{ Vehicle, VEHICLE_HEIGHT, VEHICLE_WIDTH }, WINDOW_WIDTH, WINDOW_HEIGHT }; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VEHICLE_HEIGHT` and `VEHICLE_WIDTH` [INFO] [stdout] --> src/physics.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{ vehicle::{ Vehicle, VEHICLE_HEIGHT, VEHICLE_WIDTH }, WINDOW_WIDTH, WINDOW_HEIGHT }; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_remaining_finished_vehicles` and `find_min_max_times` are never used [INFO] [stdout] --> src/intersection.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Intersection { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn add_remaining_finished_vehicles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn find_min_max_times(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `vehicles` are never read [INFO] [stdout] --> src/intersection.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct Lane { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 210 | pub origin: Direction, [INFO] [stdout] 211 | pub direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 212 | pub vehicles: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_vehicle` is never used [INFO] [stdout] --> src/intersection.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 215 | impl Lane { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn add_vehicle(&mut self, vehicle: Vehicle) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_in_intersection` is never used [INFO] [stdout] --> src/vehicle.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Vehicle { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_in_intersection(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_closer_to_center` is never used [INFO] [stdout] --> src/physics.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn is_closer_to_center(point_a: Point, point_b: Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `f32` to `f32` [INFO] [stdout] --> src/physics.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | let dist_a: f32 = f32 [INFO] [stdout] | _______________________^ [INFO] [stdout] 46 | | ::sqrt(((point_a.x as f32) - center_x).powi(2) + ((point_a.y as f32) - center_y).powi(2)) [INFO] [stdout] 47 | | .into(); [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `f32` to `f32` [INFO] [stdout] --> src/physics.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let dist_b: f32 = f32 [INFO] [stdout] | _______________________^ [INFO] [stdout] 49 | | ::sqrt(((point_b.x as f32) - center_x).powi(2) + ((point_b.y as f32) - center_y).powi(2)) [INFO] [stdout] 50 | | .into(); [INFO] [stdout] | |_______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `smart-road` (bin "smart-road" test) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: methods `add_remaining_finished_vehicles` and `find_min_max_times` are never used [INFO] [stdout] --> src/intersection.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Intersection { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn add_remaining_finished_vehicles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn find_min_max_times(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `vehicles` are never read [INFO] [stdout] --> src/intersection.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct Lane { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 210 | pub origin: Direction, [INFO] [stdout] 211 | pub direction: Direction, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 212 | pub vehicles: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_vehicle` is never used [INFO] [stdout] --> src/intersection.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 215 | impl Lane { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn add_vehicle(&mut self, vehicle: Vehicle) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_in_intersection` is never used [INFO] [stdout] --> src/vehicle.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Vehicle { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_in_intersection(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_closer_to_center` is never used [INFO] [stdout] --> src/physics.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn is_closer_to_center(point_a: Point, point_b: Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `f32` to `f32` [INFO] [stdout] --> src/physics.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | let dist_a: f32 = f32 [INFO] [stdout] | _______________________^ [INFO] [stdout] 46 | | ::sqrt(((point_a.x as f32) - center_x).powi(2) + ((point_a.y as f32) - center_y).powi(2)) [INFO] [stdout] 47 | | .into(); [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `f32` to `f32` [INFO] [stdout] --> src/physics.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let dist_b: f32 = f32 [INFO] [stdout] | _______________________^ [INFO] [stdout] 49 | | ::sqrt(((point_b.x as f32) - center_x).powi(2) + ((point_b.y as f32) - center_y).powi(2)) [INFO] [stdout] 50 | | .into(); [INFO] [stdout] | |_______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `smart-road` (bin "smart-road") due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "45d2cb31566f8a765261618e7056030ab5ca28cc6c22ad549f1a691df1d30b45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45d2cb31566f8a765261618e7056030ab5ca28cc6c22ad549f1a691df1d30b45", kill_on_drop: false }` [INFO] [stdout] 45d2cb31566f8a765261618e7056030ab5ca28cc6c22ad549f1a691df1d30b45