[INFO] cloning repository https://github.com/BsoftLimited/text_example_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BsoftLimited/text_example_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBsoftLimited%2Ftext_example_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBsoftLimited%2Ftext_example_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 78f10f26a198f4fa4ab9ddee9cf80c53676fb240 [INFO] checking BsoftLimited/text_example_rs against master#c2239bca5b89a8d3573cc0fc0f2fa65c50edb79c for pr-123737 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBsoftLimited%2Ftext_example_rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BsoftLimited/text_example_rs on toolchain c2239bca5b89a8d3573cc0fc0f2fa65c50edb79c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2239bca5b89a8d3573cc0fc0f2fa65c50edb79c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BsoftLimited/text_example_rs [INFO] finished tweaking git repo https://github.com/BsoftLimited/text_example_rs [INFO] tweaked toml for git repo https://github.com/BsoftLimited/text_example_rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BsoftLimited/text_example_rs 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" "+c2239bca5b89a8d3573cc0fc0f2fa65c50edb79c" "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 pkg-config v0.3.24 [INFO] [stderr] Downloaded quote v1.0.14 [INFO] [stderr] Downloaded wayland-egl v0.29.4 [INFO] [stderr] Downloaded darling_macro v0.13.1 [INFO] [stderr] Downloaded wayland-cursor v0.29.4 [INFO] [stderr] Downloaded wayland-sys v0.29.4 [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded cmake v0.1.48 [INFO] [stderr] Downloaded num_enum_derive v0.5.6 [INFO] [stderr] Downloaded num_enum v0.5.6 [INFO] [stderr] Downloaded once_cell v1.9.0 [INFO] [stderr] Downloaded freetype-rs v0.29.0 [INFO] [stderr] Downloaded wayland-client v0.29.4 [INFO] [stderr] Downloaded nix v0.22.0 [INFO] [stderr] Downloaded syn v1.0.85 [INFO] [stderr] Downloaded winit v0.26.1 [INFO] [stderr] Downloaded libc v0.2.112 [INFO] [stderr] Downloaded darling_core v0.13.1 [INFO] [stderr] Downloaded darling v0.13.1 [INFO] [stderr] Downloaded serde v1.0.133 [INFO] [stderr] Downloaded calloop v0.9.3 [INFO] [stderr] Downloaded smithay-client-toolkit v0.15.3 [INFO] [stderr] Downloaded bumpalo v3.9.1 [INFO] [stderr] Downloaded wayland-commons v0.29.4 [INFO] [stderr] Downloaded wayland-scanner v0.29.4 [INFO] [stderr] Downloaded wayland-protocols v0.29.4 [INFO] [stderr] Downloaded freetype-sys v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+c2239bca5b89a8d3573cc0fc0f2fa65c50edb79c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc1c6379b7789d526820358afc07870ea4656d87f9a2f6393e45f6d126357204 [INFO] running `Command { std: "docker" "start" "-a" "fc1c6379b7789d526820358afc07870ea4656d87f9a2f6393e45f6d126357204", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc1c6379b7789d526820358afc07870ea4656d87f9a2f6393e45f6d126357204", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc1c6379b7789d526820358afc07870ea4656d87f9a2f6393e45f6d126357204", kill_on_drop: false }` [INFO] [stdout] fc1c6379b7789d526820358afc07870ea4656d87f9a2f6393e45f6d126357204 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+c2239bca5b89a8d3573cc0fc0f2fa65c50edb79c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5441f91c94607ae4e2435b288d065554802900add4790ab7c63e7b2f504b0fbf [INFO] running `Command { std: "docker" "start" "-a" "5441f91c94607ae4e2435b288d065554802900add4790ab7c63e7b2f504b0fbf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking libloading v0.7.2 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.3 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Checking nix v0.22.0 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Checking memmap2 v0.3.1 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking raw-window-handle v0.4.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling freetype-sys v0.15.0 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Checking freetype-rs v0.29.0 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking wayland-commons v0.29.4 [INFO] [stderr] Checking calloop v0.9.3 [INFO] [stderr] Checking wayland-cursor v0.29.4 [INFO] [stderr] Checking wayland-egl v0.29.4 [INFO] [stderr] Checking glutin v0.28.0 [INFO] [stderr] Checking text_example_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Matrix2`, `Matrix3`, `Matrix`, `Transformation3D` [INFO] [stdout] --> src/grafx/physics/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub use matrix::{Matrix, Matrix2, Matrix3, Matrix4, Transformation2D, Transformation3D}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Matrix2`, `Matrix3`, `Matrix`, `Transformation3D` [INFO] [stdout] --> src/grafx/physics/mod.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub use matrix::{Matrix, Matrix2, Matrix3, Matrix4, Transformation2D, Transformation3D}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/grafx/text.rs:39:41 [INFO] [stdout] | [INFO] [stdout] 39 | }else if let Some(shader) = &TEXT_SHADER { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 39 | }else if let Some(shader) = addr_of!(TEXT_SHADER) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/grafx/text.rs:137:35 [INFO] [stdout] | [INFO] [stdout] 137 | if let Some(shader) = &TEXT_SHADER { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 137 | if let Some(shader) = addr_of!(TEXT_SHADER) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/grafx/physics/mod.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | fn is_inside(&self, x:f32, y:f32)->bool{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/grafx/physics/mod.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn is_inside(&self, x:f32, y:f32)->bool{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/grafx/physics/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Viewport{ [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn update(&mut self, width:f32, height:f32){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `rotation` are never read [INFO] [stdout] --> src/grafx/physics/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rectangle{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 24 | width:f32, height:f32, rotation:f32, [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/grafx/text.rs:39:41 [INFO] [stdout] | [INFO] [stdout] 39 | }else if let Some(shader) = &TEXT_SHADER { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 39 | }else if let Some(shader) = addr_of!(TEXT_SHADER) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/grafx/text.rs:137:35 [INFO] [stdout] | [INFO] [stdout] 137 | if let Some(shader) = &TEXT_SHADER { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 137 | if let Some(shader) = addr_of!(TEXT_SHADER) { [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/grafx/physics/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Rectangle{ [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_lower_left(&self)->&Vector2{ self.lower_left.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub fn get_lower_right(&self)->&Vector2{ self.lower_right.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub fn get_upper_left(&self)->&Vector2{ self.upper_left.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub fn get_upper_right(&self)->&Vector2{ self.upper_right.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn is_inside(&self, x:f32, y:f32)->bool{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn has_collided(&self, rect:&Rectangle)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn generate_scalar(corner: &Vector2, axis:&Vector2)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn min_max(values:[i32; 4])->(i32, i32){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn is_axis_collision(&self, rect:&Rectangle, axis:Vector2)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inverse` and `getSize` are never used [INFO] [stdout] --> src/grafx/physics/matrix.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Matrix{ [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn inverse(&mut self)->Self; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | fn getSize(&self)->usize; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_properties`, `use`, `set_diffuse_color`, `set_ambient_color`, `set_specular_color`, and `set_shininess` are never used [INFO] [stdout] --> src/grafx/materials/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Material : Disposable{ [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 23 | fn get_shader(&self)->&Box; [INFO] [stdout] 24 | fn get_properties(&self)->&Box; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | unsafe fn r#use(&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn set_diffuse_color(&mut self, color:Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | fn set_ambient_color(&mut self, color:Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | fn set_specular_color(&mut self, color:Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | fn set_shininess(&mut self, shinines:f32); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getData` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn getData(&self)->&[[f32; 3]; 3]{ &self.data } [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RotationMatrix` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn RotationMatrix(degree:f32)->Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `TranslateMatrix` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn TranslateMatrix(vector: &Vector2)->Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `translate_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ScaleMatrix` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn ScaleMatrix(vector: &Vector2)->Self{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `scale_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/grafx/physics/mod.rs:54:25 [INFO] [stdout] | [INFO] [stdout] 54 | fn is_inside(&self, x:f32, y:f32)->bool{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/grafx/physics/mod.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn is_inside(&self, x:f32, y:f32)->bool{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/grafx/physics/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Viewport{ [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn update(&mut self, width:f32, height:f32){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `rotation` are never read [INFO] [stdout] --> src/grafx/physics/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Rectangle{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 24 | width:f32, height:f32, rotation:f32, [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/grafx/physics/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Rectangle{ [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_lower_left(&self)->&Vector2{ self.lower_left.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub fn get_lower_right(&self)->&Vector2{ self.lower_right.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub fn get_upper_left(&self)->&Vector2{ self.upper_left.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub fn get_upper_right(&self)->&Vector2{ self.upper_right.as_ref() } [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn is_inside(&self, x:f32, y:f32)->bool{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn has_collided(&self, rect:&Rectangle)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn generate_scalar(corner: &Vector2, axis:&Vector2)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn min_max(values:[i32; 4])->(i32, i32){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn is_axis_collision(&self, rect:&Rectangle, axis:Vector2)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inverse` and `getSize` are never used [INFO] [stdout] --> src/grafx/physics/matrix.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Matrix{ [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn inverse(&mut self)->Self; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | fn getSize(&self)->usize; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_properties`, `use`, `set_diffuse_color`, `set_ambient_color`, `set_specular_color`, and `set_shininess` are never used [INFO] [stdout] --> src/grafx/materials/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Material : Disposable{ [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 23 | fn get_shader(&self)->&Box; [INFO] [stdout] 24 | fn get_properties(&self)->&Box; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | unsafe fn r#use(&self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn set_diffuse_color(&mut self, color:Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | fn set_ambient_color(&mut self, color:Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | fn set_specular_color(&mut self, color:Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | fn set_shininess(&mut self, shinines:f32); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getData` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn getData(&self)->&[[f32; 3]; 3]{ &self.data } [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RotationMatrix` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn RotationMatrix(degree:f32)->Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rotation_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `TranslateMatrix` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn TranslateMatrix(vector: &Vector2)->Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `translate_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ScaleMatrix` should have a snake case name [INFO] [stdout] --> src/grafx/physics/matrix.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn ScaleMatrix(vector: &Vector2)->Self{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `scale_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.43s [INFO] running `Command { std: "docker" "inspect" "5441f91c94607ae4e2435b288d065554802900add4790ab7c63e7b2f504b0fbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5441f91c94607ae4e2435b288d065554802900add4790ab7c63e7b2f504b0fbf", kill_on_drop: false }` [INFO] [stdout] 5441f91c94607ae4e2435b288d065554802900add4790ab7c63e7b2f504b0fbf [INFO] checking BsoftLimited/text_example_rs against try#5946bac294aa8e579f74aa4a4d1f443d3b5d89f8 for pr-123737 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBsoftLimited%2Ftext_example_rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BsoftLimited/text_example_rs on toolchain 5946bac294aa8e579f74aa4a4d1f443d3b5d89f8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5946bac294aa8e579f74aa4a4d1f443d3b5d89f8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BsoftLimited/text_example_rs [INFO] finished tweaking git repo https://github.com/BsoftLimited/text_example_rs [INFO] tweaked toml for git repo https://github.com/BsoftLimited/text_example_rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/BsoftLimited/text_example_rs 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" "+5946bac294aa8e579f74aa4a4d1f443d3b5d89f8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5946bac294aa8e579f74aa4a4d1f443d3b5d89f8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b9711c6c663a1a7b9c92de402c4c8f2bc42a2e2ea7c621eee3eb3fd9a3ecd66 [INFO] running `Command { std: "docker" "start" "-a" "3b9711c6c663a1a7b9c92de402c4c8f2bc42a2e2ea7c621eee3eb3fd9a3ecd66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b9711c6c663a1a7b9c92de402c4c8f2bc42a2e2ea7c621eee3eb3fd9a3ecd66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b9711c6c663a1a7b9c92de402c4c8f2bc42a2e2ea7c621eee3eb3fd9a3ecd66", kill_on_drop: false }` [INFO] [stdout] 3b9711c6c663a1a7b9c92de402c4c8f2bc42a2e2ea7c621eee3eb3fd9a3ecd66 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5946bac294aa8e579f74aa4a4d1f443d3b5d89f8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15b8edfc3fdc7387893635e28f4fbf122ca4652f546d292a6a96984c871c2f4c [INFO] running `Command { std: "docker" "start" "-a" "15b8edfc3fdc7387893635e28f4fbf122ca4652f546d292a6a96984c871c2f4c", kill_on_drop: false }` [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking libloading v0.7.2 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.3 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Checking nix v0.22.0 [INFO] [stderr] Checking memmap2 v0.3.1 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking raw-window-handle v0.4.2 [INFO] [stderr] Compiling freetype-sys v0.15.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking freetype-rs v0.29.0 [INFO] [stderr] Checking wayland-commons v0.29.4 [INFO] [stderr] Checking calloop v0.9.3 [INFO] [stderr] Checking wayland-cursor v0.29.4 [INFO] [stderr] Checking wayland-egl v0.29.4 [INFO] [stdout] error[E0310]: the associated type `::UserEvent` may not live long enough [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/winit-0.26.1/src/platform/run_return.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | F: FnMut( [INFO] [stdout] | ____________^ [INFO] [stdout] 39 | | Event<'_, Self::UserEvent>, [INFO] [stdout] 40 | | &EventLoopWindowTarget, [INFO] [stdout] 41 | | &mut ControlFlow, [INFO] [stdout] 42 | | ); [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________the associated type `::UserEvent` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `::UserEvent` will meet its required lifetime bounds... [INFO] [stdout] | [INFO] [stdout] note: ...that is required by this bound [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/winit-0.26.1/src/event.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Event<'a, T: 'static> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 42 | ), ::UserEvent: 'static; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0310`. [INFO] [stdout] [INFO] [stderr] error: could not compile `winit` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "15b8edfc3fdc7387893635e28f4fbf122ca4652f546d292a6a96984c871c2f4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15b8edfc3fdc7387893635e28f4fbf122ca4652f546d292a6a96984c871c2f4c", kill_on_drop: false }` [INFO] [stdout] 15b8edfc3fdc7387893635e28f4fbf122ca4652f546d292a6a96984c871c2f4c