[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] testing harry97uk/smart-road-01F against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharry97uk%2Fsmart-road-01F" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [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-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/harry97uk/smart-road-01F on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2 v0.34.5 [INFO] [stderr] Downloaded sdl2-sys v0.34.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 101c7e5fb13247ed6ea4673edd22233e18788b92b6ad4da985ba279160583245 [INFO] running `Command { std: "docker" "start" "-a" "101c7e5fb13247ed6ea4673edd22233e18788b92b6ad4da985ba279160583245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "101c7e5fb13247ed6ea4673edd22233e18788b92b6ad4da985ba279160583245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "101c7e5fb13247ed6ea4673edd22233e18788b92b6ad4da985ba279160583245", kill_on_drop: false }` [INFO] [stdout] 101c7e5fb13247ed6ea4673edd22233e18788b92b6ad4da985ba279160583245 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d81b4194eae679adc313e32b410b31ee1101209c1f8336c71ab5724d608351b [INFO] running `Command { std: "docker" "start" "-a" "0d81b4194eae679adc313e32b410b31ee1101209c1f8336c71ab5724d608351b", kill_on_drop: false }` [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] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling half v2.2.1 [INFO] [stderr] Compiling bytemuck v1.14.0 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling png v0.17.10 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rayon v1.8.0 [INFO] [stderr] Compiling exr v1.71.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.0 [INFO] [stderr] Compiling tiff v0.9.0 [INFO] [stderr] Compiling image v0.24.7 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:116:40 [INFO] [stdout] | [INFO] [stdout] 116 | fn create_car_texture(texture_creator: &TextureCreator) -> Texture { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | fn create_car_texture(texture_creator: &TextureCreator) -> Texture<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:121:41 [INFO] [stdout] | [INFO] [stdout] 121 | fn create_road_texture(texture_creator: &TextureCreator) -> Texture { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 121 | fn create_road_texture(texture_creator: &TextureCreator) -> Texture<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/deps/rustcRqBjp9/symbols.o" "<4 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{librand-90596fa8f7614f80,librand_chacha-cf821137605719f4,libppv_lite86-4250c766b4729968,librand_core-cafcb77fad4ded99,libgetrandom-1c9658aa514e5a0a,libcfg_if-33ef6c02a07f9fec,libsdl2-09b90831e1621dbd,libsdl2_sys-a48c8ef1884b0d6b,libbitflags-e2b4db6c651223da,liblazy_static-2bb390fee0230a38,liblibc-b145e4947911ee35}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lSDL2" "-lSDL2_image" "-lSDL2_ttf" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/opt/rustwide/target/debug/deps/rustcRqBjp9/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/smart_road-e81b0ca48bddf3a7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lSDL2_image [INFO] [stdout] rust-lld: error: unable to find library -lSDL2_ttf [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `smart-road` (bin "smart-road") due to 1 previous error; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0d81b4194eae679adc313e32b410b31ee1101209c1f8336c71ab5724d608351b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d81b4194eae679adc313e32b410b31ee1101209c1f8336c71ab5724d608351b", kill_on_drop: false }` [INFO] [stdout] 0d81b4194eae679adc313e32b410b31ee1101209c1f8336c71ab5724d608351b