[INFO] cloning repository https://github.com/eugeneyche/breakout [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eugeneyche/breakout" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feugeneyche%2Fbreakout", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feugeneyche%2Fbreakout'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f751b68db1a77ea0a6dddb5d309e90b7190c0dcb [INFO] testing eugeneyche/breakout against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feugeneyche%2Fbreakout" "/workspace/builds/worker-68/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-68/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eugeneyche/breakout on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eugeneyche/breakout [INFO] finished tweaking git repo https://github.com/eugeneyche/breakout [INFO] tweaked toml for git repo https://github.com/eugeneyche/breakout written to /workspace/builds/worker-68/source/Cargo.toml [INFO] crate git repo https://github.com/eugeneyche/breakout already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libz-sys v1.0.18 [INFO] [stderr] Downloaded gleam v0.5.0 [INFO] [stderr] Downloaded cgl v0.2.2 [INFO] [stderr] Downloaded freetype-sys v0.6.0 [INFO] [stderr] Downloaded freetype-rs v0.18.0 [INFO] [stderr] Downloaded winit v0.13.1 [INFO] [stderr] Downloaded glutin v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c70b6d1852832476c0aaa5604bf8dd201b4bea545527d916be81dad8d108211 [INFO] running `Command { std: "docker" "start" "-a" "9c70b6d1852832476c0aaa5604bf8dd201b4bea545527d916be81dad8d108211", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c70b6d1852832476c0aaa5604bf8dd201b4bea545527d916be81dad8d108211", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c70b6d1852832476c0aaa5604bf8dd201b4bea545527d916be81dad8d108211", kill_on_drop: false }` [INFO] [stdout] 9c70b6d1852832476c0aaa5604bf8dd201b4bea545527d916be81dad8d108211 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c32ec1ecf33003169b57c7ea29de0abffd8a5616874b14c8f32fc46fa369a13 [INFO] running `Command { std: "docker" "start" "-a" "3c32ec1ecf33003169b57c7ea29de0abffd8a5616874b14c8f32fc46fa369a13", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Compiling cc v1.0.15 [INFO] [stderr] Compiling libc v0.2.40 [INFO] [stderr] Compiling pkg-config v0.3.11 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling cfg-if v0.1.3 [INFO] [stderr] Compiling token_store v0.1.2 [INFO] [stderr] Compiling remove_dir_all v0.5.1 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling shared_library v0.1.8 [INFO] [stderr] Compiling wayland-scanner v0.12.5 [INFO] [stderr] Compiling x11-dl v2.17.5 [INFO] [stderr] Compiling freetype-sys v0.6.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling libz-sys v1.0.18 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling tempfile v3.0.2 [INFO] [stderr] Compiling wayland-client v0.12.5 [INFO] [stderr] Compiling wayland-protocols v0.12.5 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling glutin v0.15.0 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling wayland-sys v0.12.5 [INFO] [stderr] Compiling freetype-rs v0.18.0 [INFO] [stderr] Compiling wayland-kbd v0.13.1 [INFO] [stderr] Compiling wayland-window v0.13.3 [INFO] [stderr] Compiling winit v0.13.1 [INFO] [stderr] Compiling breakout v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/breakout.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | if (key_state == ElementState::Pressed) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - if (key_state == ElementState::Pressed) { [INFO] [stdout] 243 + if key_state == ElementState::Pressed { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/breakout.rs:266:20 [INFO] [stdout] | [INFO] [stdout] 266 | if (key_state == ElementState::Pressed) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 266 - if (key_state == ElementState::Pressed) { [INFO] [stdout] 266 + if key_state == ElementState::Pressed { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ElementState`, `MouseButton`, `VirtualKeyCode` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ElementState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | MouseButton, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | VirtualKeyCode, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/breakout.rs:230:39 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn on_mouse_button(&mut self, button: MouseButton, state: ElementState) { } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/breakout.rs:230:60 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn on_mouse_button(&mut self, button: MouseButton, state: ElementState) { } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/breakout.rs:232:39 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn on_mouse_motion(&mut self, x: f32, y: f32) { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/breakout.rs:232:47 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn on_mouse_motion(&mut self, x: f32, y: f32) { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/breakout.rs:273:42 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn on_viewport_change(&mut self, w: u32, h: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/breakout.rs:273:50 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn on_viewport_change(&mut self, w: u32, h: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tr` [INFO] [stdout] --> src/collision.rs:120:28 [INFO] [stdout] | [INFO] [stdout] 120 | if let Some((tl, side, tr)) = solve_line_rect(seg, Rectangle::new( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_circle_contains` [INFO] [stdout] --> src/collision.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn check_circle_contains(circle: Circle, p: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_line_circle` [INFO] [stdout] --> src/collision.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn solve_line_circle(line: LineSegment, circle: Circle) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FontMeasure` [INFO] [stdout] --> src/fonts.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct FontMeasure { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `measure` [INFO] [stdout] --> src/fonts.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn measure(&self, text: &str) -> FontMeasure { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn new(p: Vec2, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw` [INFO] [stdout] --> src/renderer.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn draw(&mut self, from_x: f32, from_y: f32, to_x: f32, to_y: f32, color: &[f32; 4]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_line` [INFO] [stdout] --> src/renderer.rs:423:12 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn draw_line(&mut self, from: Vec2, to: Vec2, color: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/graphics.rs:81:69 [INFO] [stdout] | [INFO] [stdout] 81 | gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 140 | offset_of!(RectVertex, bound) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 149 | offset_of!(RectVertex, color) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 198 | offset_of!(CircleVertex, center) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 207 | offset_of!(CircleVertex, radius) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 216 | offset_of!(CircleVertex, color) as _, [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 264 | offset_of!(LineVertex, position) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 273 | offset_of!(LineVertex, color) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 324 | offset_of!(TextVertex, bound) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 333 | offset_of!(TextVertex, uv_bound) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 342 | offset_of!(TextVertex, color) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 27s [INFO] running `Command { std: "docker" "inspect" "3c32ec1ecf33003169b57c7ea29de0abffd8a5616874b14c8f32fc46fa369a13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c32ec1ecf33003169b57c7ea29de0abffd8a5616874b14c8f32fc46fa369a13", kill_on_drop: false }` [INFO] [stdout] 3c32ec1ecf33003169b57c7ea29de0abffd8a5616874b14c8f32fc46fa369a13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6c41e3c2ae94c4e5e163737d0a9e685025026324b7b6c074eb770740a15cf4d [INFO] running `Command { std: "docker" "start" "-a" "f6c41e3c2ae94c4e5e163737d0a9e685025026324b7b6c074eb770740a15cf4d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling breakout v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/breakout.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | if (key_state == ElementState::Pressed) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - if (key_state == ElementState::Pressed) { [INFO] [stdout] 243 + if key_state == ElementState::Pressed { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/breakout.rs:266:20 [INFO] [stdout] | [INFO] [stdout] 266 | if (key_state == ElementState::Pressed) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 266 - if (key_state == ElementState::Pressed) { [INFO] [stdout] 266 + if key_state == ElementState::Pressed { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ElementState`, `MouseButton`, `VirtualKeyCode` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | ElementState, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | MouseButton, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | VirtualKeyCode, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/breakout.rs:230:39 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn on_mouse_button(&mut self, button: MouseButton, state: ElementState) { } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/breakout.rs:230:60 [INFO] [stdout] | [INFO] [stdout] 230 | pub fn on_mouse_button(&mut self, button: MouseButton, state: ElementState) { } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/breakout.rs:232:39 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn on_mouse_motion(&mut self, x: f32, y: f32) { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/breakout.rs:232:47 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn on_mouse_motion(&mut self, x: f32, y: f32) { } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/breakout.rs:273:42 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn on_viewport_change(&mut self, w: u32, h: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/breakout.rs:273:50 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn on_viewport_change(&mut self, w: u32, h: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tr` [INFO] [stdout] --> src/collision.rs:120:28 [INFO] [stdout] | [INFO] [stdout] 120 | if let Some((tl, side, tr)) = solve_line_rect(seg, Rectangle::new( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_circle_contains` [INFO] [stdout] --> src/collision.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn check_circle_contains(circle: Circle, p: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_line_circle` [INFO] [stdout] --> src/collision.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn solve_line_circle(line: LineSegment, circle: Circle) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FontMeasure` [INFO] [stdout] --> src/fonts.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct FontMeasure { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `measure` [INFO] [stdout] --> src/fonts.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn measure(&self, text: &str) -> FontMeasure { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn new(p: Vec2, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw` [INFO] [stdout] --> src/renderer.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn draw(&mut self, from_x: f32, from_y: f32, to_x: f32, to_y: f32, color: &[f32; 4]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw_line` [INFO] [stdout] --> src/renderer.rs:423:12 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn draw_line(&mut self, from: Vec2, to: Vec2, color: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/graphics.rs:81:69 [INFO] [stdout] | [INFO] [stdout] 81 | gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr()) [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 140 | offset_of!(RectVertex, bound) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 149 | offset_of!(RectVertex, color) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 198 | offset_of!(CircleVertex, center) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 207 | offset_of!(CircleVertex, radius) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 216 | offset_of!(CircleVertex, color) as _, [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 264 | offset_of!(LineVertex, position) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 273 | offset_of!(LineVertex, color) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 324 | offset_of!(TextVertex, bound) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 333 | offset_of!(TextVertex, uv_bound) as _, [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/renderer.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 342 | offset_of!(TextVertex, color) as _, [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.93s [INFO] running `Command { std: "docker" "inspect" "f6c41e3c2ae94c4e5e163737d0a9e685025026324b7b6c074eb770740a15cf4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6c41e3c2ae94c4e5e163737d0a9e685025026324b7b6c074eb770740a15cf4d", kill_on_drop: false }` [INFO] [stdout] f6c41e3c2ae94c4e5e163737d0a9e685025026324b7b6c074eb770740a15cf4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 89add39076ee8a40420c8f4fddc92be8bc917abc6bf22af09918b69bf09ab1c6 [INFO] running `Command { std: "docker" "start" "-a" "89add39076ee8a40420c8f4fddc92be8bc917abc6bf22af09918b69bf09ab1c6", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/breakout.rs:243:20 [INFO] [stderr] | [INFO] [stderr] 243 | if (key_state == ElementState::Pressed) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 243 - if (key_state == ElementState::Pressed) { [INFO] [stderr] 243 + if key_state == ElementState::Pressed { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/breakout.rs:266:20 [INFO] [stderr] | [INFO] [stderr] 266 | if (key_state == ElementState::Pressed) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 266 - if (key_state == ElementState::Pressed) { [INFO] [stderr] 266 + if key_state == ElementState::Pressed { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ElementState`, `MouseButton`, `VirtualKeyCode` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | ElementState, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | MouseButton, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 23 | VirtualKeyCode, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `button` [INFO] [stderr] --> src/breakout.rs:230:39 [INFO] [stderr] | [INFO] [stderr] 230 | pub fn on_mouse_button(&mut self, button: MouseButton, state: ElementState) { } [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/breakout.rs:230:60 [INFO] [stderr] | [INFO] [stderr] 230 | pub fn on_mouse_button(&mut self, button: MouseButton, state: ElementState) { } [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/breakout.rs:232:39 [INFO] [stderr] | [INFO] [stderr] 232 | pub fn on_mouse_motion(&mut self, x: f32, y: f32) { } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/breakout.rs:232:47 [INFO] [stderr] | [INFO] [stderr] 232 | pub fn on_mouse_motion(&mut self, x: f32, y: f32) { } [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/breakout.rs:273:42 [INFO] [stderr] | [INFO] [stderr] 273 | pub fn on_viewport_change(&mut self, w: u32, h: u32) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `h` [INFO] [stderr] --> src/breakout.rs:273:50 [INFO] [stderr] | [INFO] [stderr] 273 | pub fn on_viewport_change(&mut self, w: u32, h: u32) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tr` [INFO] [stderr] --> src/collision.rs:120:28 [INFO] [stderr] | [INFO] [stderr] 120 | if let Some((tl, side, tr)) = solve_line_rect(seg, Rectangle::new( [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_tr` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `check_circle_contains` [INFO] [stderr] --> src/collision.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn check_circle_contains(circle: Circle, p: Vec2) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `solve_line_circle` [INFO] [stderr] --> src/collision.rs:77:8 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn solve_line_circle(line: LineSegment, circle: Circle) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `FontMeasure` [INFO] [stderr] --> src/fonts.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct FontMeasure { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `measure` [INFO] [stderr] --> src/fonts.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn measure(&self, text: &str) -> FontMeasure { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/renderer.rs:110:12 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn new(p: Vec2, w: f32, h: f32) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `draw` [INFO] [stderr] --> src/renderer.rs:282:12 [INFO] [stderr] | [INFO] [stderr] 282 | pub fn draw(&mut self, from_x: f32, from_y: f32, to_x: f32, to_y: f32, color: &[f32; 4]) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `draw_line` [INFO] [stderr] --> src/renderer.rs:423:12 [INFO] [stderr] | [INFO] [stderr] 423 | pub fn draw_line(&mut self, from: Vec2, to: Vec2, color: Color) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/graphics.rs:81:69 [INFO] [stderr] | [INFO] [stderr] 81 | gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr()) [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 140 | offset_of!(RectVertex, bound) as _, [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 149 | offset_of!(RectVertex, color) as _, [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 198 | offset_of!(CircleVertex, center) as _, [INFO] [stderr] | -------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 207 | offset_of!(CircleVertex, radius) as _, [INFO] [stderr] | -------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 216 | offset_of!(CircleVertex, color) as _, [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 264 | offset_of!(LineVertex, position) as _, [INFO] [stderr] | -------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 273 | offset_of!(LineVertex, color) as _, [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 324 | offset_of!(TextVertex, bound) as _, [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 333 | offset_of!(TextVertex, uv_bound) as _, [INFO] [stderr] | -------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/renderer.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | (&(*(ptr::null() as *const $ty)).$field as *const _ as usize) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] ... [INFO] [stderr] 342 | offset_of!(TextVertex, color) as _, [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `breakout` (bin "breakout" test) generated 28 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.09s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/breakout-1b65ceb6f5cd02ce) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "89add39076ee8a40420c8f4fddc92be8bc917abc6bf22af09918b69bf09ab1c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89add39076ee8a40420c8f4fddc92be8bc917abc6bf22af09918b69bf09ab1c6", kill_on_drop: false }` [INFO] [stdout] 89add39076ee8a40420c8f4fddc92be8bc917abc6bf22af09918b69bf09ab1c6