[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/78f10f26a198f4fa4ab9ddee9cf80c53676fb240 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBsoftLimited%2Ftext_example_rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BsoftLimited/text_example_rs on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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-1-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00781217b22d48c0932ef7b8d4b7701a82bb9caf16408354cdd912e2299c8962 [INFO] running `Command { std: "docker" "start" "-a" "00781217b22d48c0932ef7b8d4b7701a82bb9caf16408354cdd912e2299c8962", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00781217b22d48c0932ef7b8d4b7701a82bb9caf16408354cdd912e2299c8962", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00781217b22d48c0932ef7b8d4b7701a82bb9caf16408354cdd912e2299c8962", kill_on_drop: false }` [INFO] [stdout] 00781217b22d48c0932ef7b8d4b7701a82bb9caf16408354cdd912e2299c8962 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 59f8b49679553fd9502bd15cf3d17895045f535d42abebe4e7aecd62bc73e6dc [INFO] running `Command { std: "docker" "start" "-a" "59f8b49679553fd9502bd15cf3d17895045f535d42abebe4e7aecd62bc73e6dc", 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] Compiling log v0.4.14 [INFO] [stderr] Checking cfg-if v1.0.0 [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 smallvec v1.7.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking libloading v0.7.2 [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 parking_lot_core v0.8.5 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking raw-window-handle v0.4.2 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.3 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling freetype-sys v0.15.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking nix v0.22.0 [INFO] [stderr] Checking memmap2 v0.3.1 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking freetype-rs v0.29.0 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [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`, and `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`, and `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: 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: 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 69 | let mut texts = Vec::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | let mut copy = Text::new("Bsoft Limited"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let mut fps = Text::new("FTP: 00"); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Test{ port:Box::new(Viewport::new(800.0, 480.0)), texts, copy:Box::new(copy), fps:Box::new(fps) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:106:71 [INFO] [stdout] | [INFO] [stdout] 69 | let mut texts = Vec::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | let mut copy = Text::new("Bsoft Limited"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let mut fps = Text::new("FTP: 00"); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Test{ port:Box::new(Viewport::new(800.0, 480.0)), texts, copy:Box::new(copy), fps:Box::new(fps) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:106:91 [INFO] [stdout] | [INFO] [stdout] 69 | let mut texts = Vec::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | let mut copy = Text::new("Bsoft Limited"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let mut fps = Text::new("FTP: 00"); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Test{ port:Box::new(Viewport::new(800.0, 480.0)), texts, copy:Box::new(copy), fps:Box::new(fps) } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/grafx/text.rs:58:45 [INFO] [stdout] | [INFO] [stdout] 36 | let init = Box::new(Shader::text()); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let characters = Text::get_characters(font, text, 16); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | font_size:16, characters, color:Box::new(Color::White()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/grafx/text.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 36 | let init = Box::new(Shader::text()); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let characters = Text::get_characters(font, text, 16); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 59 | transform:Box::new(Transformation2D::new()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `text_example_rs` (bin "text_example_rs") due to 6 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 69 | let mut texts = Vec::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | let mut copy = Text::new("Bsoft Limited"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let mut fps = Text::new("FTP: 00"); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Test{ port:Box::new(Viewport::new(800.0, 480.0)), texts, copy:Box::new(copy), fps:Box::new(fps) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:106:71 [INFO] [stdout] | [INFO] [stdout] 69 | let mut texts = Vec::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | let mut copy = Text::new("Bsoft Limited"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let mut fps = Text::new("FTP: 00"); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Test{ port:Box::new(Viewport::new(800.0, 480.0)), texts, copy:Box::new(copy), fps:Box::new(fps) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:106:91 [INFO] [stdout] | [INFO] [stdout] 69 | let mut texts = Vec::new(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 94 | let mut copy = Text::new("Bsoft Limited"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 100 | let mut fps = Text::new("FTP: 00"); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 106 | Test{ port:Box::new(Viewport::new(800.0, 480.0)), texts, copy:Box::new(copy), fps:Box::new(fps) } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/grafx/text.rs:58:45 [INFO] [stdout] | [INFO] [stdout] 36 | let init = Box::new(Shader::text()); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let characters = Text::get_characters(font, text, 16); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | font_size:16, characters, color:Box::new(Color::White()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/grafx/text.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 36 | let init = Box::new(Shader::text()); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 46 | let characters = Text::get_characters(font, text, 16); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 59 | transform:Box::new(Transformation2D::new()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `text_example_rs` (bin "text_example_rs" test) due to 6 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "59f8b49679553fd9502bd15cf3d17895045f535d42abebe4e7aecd62bc73e6dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59f8b49679553fd9502bd15cf3d17895045f535d42abebe4e7aecd62bc73e6dc", kill_on_drop: false }` [INFO] [stdout] 59f8b49679553fd9502bd15cf3d17895045f535d42abebe4e7aecd62bc73e6dc