[INFO] cloning repository https://github.com/ernestochero/hello-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ernestochero/hello-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fernestochero%2Fhello-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fernestochero%2Fhello-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d4495159493ad70b4283c6101fea77f78fb7e077 [INFO] checking ernestochero/hello-rust against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fernestochero%2Fhello-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ernestochero/hello-rust on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ernestochero/hello-rust [INFO] finished tweaking git repo https://github.com/ernestochero/hello-rust [INFO] tweaked toml for git repo https://github.com/ernestochero/hello-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ernestochero/hello-rust 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded poloto v2.20.4 [INFO] [stderr] Downloaded tagger v3.2.1 [INFO] [stderr] Downloaded winit v0.27.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf418d17a7c8b04ad34325209b7fe07374a69f55267b2021a4513a6bde639b8c [INFO] running `Command { std: "docker" "start" "-a" "bf418d17a7c8b04ad34325209b7fe07374a69f55267b2021a4513a6bde639b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf418d17a7c8b04ad34325209b7fe07374a69f55267b2021a4513a6bde639b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf418d17a7c8b04ad34325209b7fe07374a69f55267b2021a4513a6bde639b8c", kill_on_drop: false }` [INFO] [stdout] bf418d17a7c8b04ad34325209b7fe07374a69f55267b2021a4513a6bde639b8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f1d47edab56cf42aa16b890ae3353f8d49e27cee4094c359151c1ddeeb30115 [INFO] running `Command { std: "docker" "start" "-a" "7f1d47edab56cf42aa16b890ae3353f8d49e27cee4094c359151c1ddeeb30115", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking libloading v0.7.3 [INFO] [stderr] Compiling libm v0.2.5 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling thiserror v1.0.35 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking miniz_oxide v0.5.4 [INFO] [stderr] Checking bytemuck v1.12.1 [INFO] [stderr] Compiling x11-dl v2.20.0 [INFO] [stderr] Compiling crossfont v0.5.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking foreign-types-shared v0.3.1 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Checking tiny-skia-path v0.7.0 [INFO] [stderr] Checking safe_arch v0.5.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking raw-window-handle v0.5.0 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking png v0.17.6 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking smawk v0.3.1 [INFO] [stderr] Checking itertools v0.10.4 [INFO] [stderr] Checking smallvec v0.4.5 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Checking textwrap v0.13.4 [INFO] [stderr] Checking tagger v3.2.1 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking poloto v2.20.4 [INFO] [stderr] Checking ferris-says v0.2.1 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking nix v0.24.2 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking memmap2 v0.5.7 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking freetype-rs v0.26.0 [INFO] [stderr] Checking servo-fontconfig v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tiny-skia v0.7.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking noisy_float v0.2.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Compiling thiserror-impl v1.0.35 [INFO] [stderr] Compiling foreign-types-macros v0.2.2 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking wayland-egl v0.29.5 [INFO] [stderr] Checking foreign-types v0.5.0 [INFO] [stderr] Checking calloop v0.10.1 [INFO] [stderr] Checking ndarray-rand v0.14.0 [INFO] [stderr] Checking ndarray-stats v0.5.1 [INFO] [stderr] Checking sctk-adwaita v0.4.2 [INFO] [stderr] Checking winit v0.27.3 [INFO] [stderr] Checking glutin v0.29.1 [INFO] [stderr] Checking hello-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn sum(a: i32, b: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir_example` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn dir_example() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_walk_dir` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn count_walk_dir(root: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ferris_test` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn ferris_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/main.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unit` is never constructed [INFO] [stdout] --> src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sheep` is never constructed [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Sheep { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `misc` is never used [INFO] [stdout] --> src/main.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn misc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> src/count_words.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn open_file(p: &str) -> BufReader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_lines` is never used [INFO] [stdout] --> src/count_words.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn count_lines() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_array` is never used [INFO] [stdout] --> src/data_science.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn test_array() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ndarray_rand` is never used [INFO] [stdout] --> src/data_science.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn test_ndarray_rand() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_visualize` is never used [INFO] [stdout] --> src/data_science.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn test_visualize() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CompilationError` and `LinkingError` are never constructed [INFO] [stdout] --> src/open_gl.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum ShaderError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 15 | #[error("Error while compiling shader: {0}")] [INFO] [stdout] 16 | CompilationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("Error while linking shaders: {0}")] [INFO] [stdout] 18 | LinkingError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/open_gl.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl Shader { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 38 | pub unsafe fn new(source_code:&str, shader_type: GLenum) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `apply`, and `get_attrib_location` are never used [INFO] [stdout] --> src/open_gl.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 79 | impl ShaderProgram { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 80 | pub unsafe fn new(shaders: &[Shader]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub unsafe fn apply(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub unsafe fn get_attrib_location(&self, attrib: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/open_gl.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 126 | pub id: GLuint, [INFO] [stdout] 127 | target: GLuint, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_data`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 138 | impl Buffer { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 139 | pub unsafe fn new(target: GLuint) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub unsafe fn set_data(&self, data: &[D], usage: GLuint) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_attribute`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 174 | impl VertexArray { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 175 | pub unsafe fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub unsafe fn set_attribute( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTEX_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | const VERTEX_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAGMENT_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | const FRAGMENT_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pos` is never used [INFO] [stdout] --> src/open_gl.rs:243:6 [INFO] [stdout] | [INFO] [stdout] 243 | type Pos = [f32; 2]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Color` is never used [INFO] [stdout] --> src/open_gl.rs:244:6 [INFO] [stdout] | [INFO] [stdout] 244 | type Color = [f32; 3]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/open_gl.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | struct Vertex(Pos, Color); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICES` is never used [INFO] [stdout] --> src/open_gl.rs:250:7 [INFO] [stdout] | [INFO] [stdout] 250 | const VERTICES: [Vertex; 3] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Renderer` is never constructed [INFO] [stdout] --> src/open_gl.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct Renderer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw` are never used [INFO] [stdout] --> src/open_gl.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 262 | impl Renderer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 263 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_window` is never used [INFO] [stdout] --> src/open_gl.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn build_window() -> () { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `age`, and `admin` are never read [INFO] [stdout] --> src/memory_alignment.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Member { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | age: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | admin: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn sum(a: i32, b: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir_example` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn dir_example() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_walk_dir` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn count_walk_dir(root: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ferris_test` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn ferris_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/main.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unit` is never constructed [INFO] [stdout] --> src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sheep` is never constructed [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Sheep { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `misc` is never used [INFO] [stdout] --> src/main.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn misc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> src/count_words.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn open_file(p: &str) -> BufReader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_lines` is never used [INFO] [stdout] --> src/count_words.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn count_lines() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_array` is never used [INFO] [stdout] --> src/data_science.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn test_array() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ndarray_rand` is never used [INFO] [stdout] --> src/data_science.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn test_ndarray_rand() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_visualize` is never used [INFO] [stdout] --> src/data_science.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn test_visualize() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CompilationError` and `LinkingError` are never constructed [INFO] [stdout] --> src/open_gl.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum ShaderError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 15 | #[error("Error while compiling shader: {0}")] [INFO] [stdout] 16 | CompilationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("Error while linking shaders: {0}")] [INFO] [stdout] 18 | LinkingError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/open_gl.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl Shader { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 38 | pub unsafe fn new(source_code:&str, shader_type: GLenum) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `apply`, and `get_attrib_location` are never used [INFO] [stdout] --> src/open_gl.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 79 | impl ShaderProgram { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 80 | pub unsafe fn new(shaders: &[Shader]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub unsafe fn apply(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub unsafe fn get_attrib_location(&self, attrib: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/open_gl.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 126 | pub id: GLuint, [INFO] [stdout] 127 | target: GLuint, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_data`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 138 | impl Buffer { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 139 | pub unsafe fn new(target: GLuint) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub unsafe fn set_data(&self, data: &[D], usage: GLuint) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_attribute`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 174 | impl VertexArray { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 175 | pub unsafe fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub unsafe fn set_attribute( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTEX_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | const VERTEX_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAGMENT_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | const FRAGMENT_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pos` is never used [INFO] [stdout] --> src/open_gl.rs:243:6 [INFO] [stdout] | [INFO] [stdout] 243 | type Pos = [f32; 2]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Color` is never used [INFO] [stdout] --> src/open_gl.rs:244:6 [INFO] [stdout] | [INFO] [stdout] 244 | type Color = [f32; 3]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/open_gl.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | struct Vertex(Pos, Color); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICES` is never used [INFO] [stdout] --> src/open_gl.rs:250:7 [INFO] [stdout] | [INFO] [stdout] 250 | const VERTICES: [Vertex; 3] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Renderer` is never constructed [INFO] [stdout] --> src/open_gl.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct Renderer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw` are never used [INFO] [stdout] --> src/open_gl.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 262 | impl Renderer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 263 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_window` is never used [INFO] [stdout] --> src/open_gl.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn build_window() -> () { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `age`, and `admin` are never read [INFO] [stdout] --> src/memory_alignment.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Member { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | age: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | admin: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.25s [INFO] running `Command { std: "docker" "inspect" "7f1d47edab56cf42aa16b890ae3353f8d49e27cee4094c359151c1ddeeb30115", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f1d47edab56cf42aa16b890ae3353f8d49e27cee4094c359151c1ddeeb30115", kill_on_drop: false }` [INFO] [stdout] 7f1d47edab56cf42aa16b890ae3353f8d49e27cee4094c359151c1ddeeb30115 [INFO] checking ernestochero/hello-rust against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fernestochero%2Fhello-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ernestochero/hello-rust on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ernestochero/hello-rust [INFO] finished tweaking git repo https://github.com/ernestochero/hello-rust [INFO] tweaked toml for git repo https://github.com/ernestochero/hello-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ernestochero/hello-rust 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7c00a6f386bb0d39d01f45a346583e8fb576d353a751a8cf86ca671ab28fa63c [INFO] running `Command { std: "docker" "start" "-a" "7c00a6f386bb0d39d01f45a346583e8fb576d353a751a8cf86ca671ab28fa63c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7c00a6f386bb0d39d01f45a346583e8fb576d353a751a8cf86ca671ab28fa63c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c00a6f386bb0d39d01f45a346583e8fb576d353a751a8cf86ca671ab28fa63c", kill_on_drop: false }` [INFO] [stdout] 7c00a6f386bb0d39d01f45a346583e8fb576d353a751a8cf86ca671ab28fa63c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad0b16c167b12f3545257390ef0ceee1ee0acd07f5f35886bf8fa6cbc394c033 [INFO] running `Command { std: "docker" "start" "-a" "ad0b16c167b12f3545257390ef0ceee1ee0acd07f5f35886bf8fa6cbc394c033", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking libloading v0.7.3 [INFO] [stderr] Compiling libm v0.2.5 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling thiserror v1.0.35 [INFO] [stderr] Checking miniz_oxide v0.5.4 [INFO] [stderr] Checking bytemuck v1.12.1 [INFO] [stderr] Compiling x11-dl v2.20.0 [INFO] [stderr] Compiling crossfont v0.5.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Checking foreign-types-shared v0.3.1 [INFO] [stderr] Checking tiny-skia-path v0.7.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking safe_arch v0.5.2 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking raw-window-handle v0.5.0 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Checking png v0.17.6 [INFO] [stderr] Checking smawk v0.3.1 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking itertools v0.10.4 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking textwrap v0.13.4 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking smallvec v0.4.5 [INFO] [stderr] Checking tagger v3.2.1 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking noisy_float v0.2.0 [INFO] [stderr] Checking nix v0.24.2 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking memmap2 v0.5.7 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking freetype-rs v0.26.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking tiny-skia v0.7.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking servo-fontconfig v0.5.1 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking ferris-says v0.2.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking poloto v2.20.4 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Compiling thiserror-impl v1.0.35 [INFO] [stderr] Compiling foreign-types-macros v0.2.2 [INFO] [stderr] Checking ndarray-stats v0.5.1 [INFO] [stderr] Checking ndarray-rand v0.14.0 [INFO] [stderr] Checking foreign-types v0.5.0 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking wayland-egl v0.29.5 [INFO] [stderr] Checking calloop v0.10.1 [INFO] [stderr] Checking sctk-adwaita v0.4.2 [INFO] [stderr] Checking winit v0.27.3 [INFO] [stderr] Checking glutin v0.29.1 [INFO] [stderr] Checking hello-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn sum(a: i32, b: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir_example` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn dir_example() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_walk_dir` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn count_walk_dir(root: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ferris_test` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn ferris_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/main.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unit` is never constructed [INFO] [stdout] --> src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sheep` is never constructed [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Sheep { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `misc` is never used [INFO] [stdout] --> src/main.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn misc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> src/count_words.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn open_file(p: &str) -> BufReader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_lines` is never used [INFO] [stdout] --> src/count_words.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn count_lines() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_array` is never used [INFO] [stdout] --> src/data_science.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn test_array() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ndarray_rand` is never used [INFO] [stdout] --> src/data_science.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn test_ndarray_rand() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_visualize` is never used [INFO] [stdout] --> src/data_science.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn test_visualize() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CompilationError` and `LinkingError` are never constructed [INFO] [stdout] --> src/open_gl.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum ShaderError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 15 | #[error("Error while compiling shader: {0}")] [INFO] [stdout] 16 | CompilationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("Error while linking shaders: {0}")] [INFO] [stdout] 18 | LinkingError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/open_gl.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl Shader { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 38 | pub unsafe fn new(source_code:&str, shader_type: GLenum) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `apply`, and `get_attrib_location` are never used [INFO] [stdout] --> src/open_gl.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 79 | impl ShaderProgram { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 80 | pub unsafe fn new(shaders: &[Shader]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub unsafe fn apply(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub unsafe fn get_attrib_location(&self, attrib: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/open_gl.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 126 | pub id: GLuint, [INFO] [stdout] 127 | target: GLuint, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_data`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 138 | impl Buffer { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 139 | pub unsafe fn new(target: GLuint) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub unsafe fn set_data(&self, data: &[D], usage: GLuint) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_attribute`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 174 | impl VertexArray { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 175 | pub unsafe fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub unsafe fn set_attribute( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTEX_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | const VERTEX_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAGMENT_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | const FRAGMENT_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pos` is never used [INFO] [stdout] --> src/open_gl.rs:243:6 [INFO] [stdout] | [INFO] [stdout] 243 | type Pos = [f32; 2]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Color` is never used [INFO] [stdout] --> src/open_gl.rs:244:6 [INFO] [stdout] | [INFO] [stdout] 244 | type Color = [f32; 3]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/open_gl.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | struct Vertex(Pos, Color); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICES` is never used [INFO] [stdout] --> src/open_gl.rs:250:7 [INFO] [stdout] | [INFO] [stdout] 250 | const VERTICES: [Vertex; 3] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Renderer` is never constructed [INFO] [stdout] --> src/open_gl.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct Renderer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw` are never used [INFO] [stdout] --> src/open_gl.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 262 | impl Renderer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 263 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_window` is never used [INFO] [stdout] --> src/open_gl.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn build_window() -> () { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn sum(a: i32, b: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `age`, and `admin` are never read [INFO] [stdout] --> src/memory_alignment.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Member { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | age: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | admin: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dir_example` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn dir_example() { [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/count_words.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | let file = open_file("./resources/sample.txt"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | file.lines().fold(0, |acc, _| acc + 1) [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] warning: function `count_walk_dir` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn count_walk_dir(root: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ferris_test` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn ferris_test() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/main.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unit` is never constructed [INFO] [stdout] --> src/main.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sheep` is never constructed [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Sheep { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `misc` is never used [INFO] [stdout] --> src/main.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn misc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_file` is never used [INFO] [stdout] --> src/count_words.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn open_file(p: &str) -> BufReader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_lines` is never used [INFO] [stdout] --> src/count_words.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn count_lines() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_array` is never used [INFO] [stdout] --> src/data_science.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn test_array() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ndarray_rand` is never used [INFO] [stdout] --> src/data_science.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn test_ndarray_rand() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_visualize` is never used [INFO] [stdout] --> src/data_science.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn test_visualize() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CompilationError` and `LinkingError` are never constructed [INFO] [stdout] --> src/open_gl.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum ShaderError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 15 | #[error("Error while compiling shader: {0}")] [INFO] [stdout] 16 | CompilationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("Error while linking shaders: {0}")] [INFO] [stdout] 18 | LinkingError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/open_gl.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 37 | impl Shader { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 38 | pub unsafe fn new(source_code:&str, shader_type: GLenum) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `apply`, and `get_attrib_location` are never used [INFO] [stdout] --> src/open_gl.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 79 | impl ShaderProgram { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 80 | pub unsafe fn new(shaders: &[Shader]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub unsafe fn apply(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub unsafe fn get_attrib_location(&self, attrib: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target` is never read [INFO] [stdout] --> src/open_gl.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct Buffer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 126 | pub id: GLuint, [INFO] [stdout] 127 | target: GLuint, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_data`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 138 | impl Buffer { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 139 | pub unsafe fn new(target: GLuint) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub unsafe fn set_data(&self, data: &[D], usage: GLuint) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_attribute`, and `bind` are never used [INFO] [stdout] --> src/open_gl.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 174 | impl VertexArray { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 175 | pub unsafe fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub unsafe fn set_attribute( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub unsafe fn bind(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTEX_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | const VERTEX_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAGMENT_SHADER_SOURCE` is never used [INFO] [stdout] --> src/open_gl.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | const FRAGMENT_SHADER_SOURCE: &str = r#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pos` is never used [INFO] [stdout] --> src/open_gl.rs:243:6 [INFO] [stdout] | [INFO] [stdout] 243 | type Pos = [f32; 2]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Color` is never used [INFO] [stdout] --> src/open_gl.rs:244:6 [INFO] [stdout] | [INFO] [stdout] 244 | type Color = [f32; 3]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/open_gl.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | struct Vertex(Pos, Color); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERTICES` is never used [INFO] [stdout] --> src/open_gl.rs:250:7 [INFO] [stdout] | [INFO] [stdout] 250 | const VERTICES: [Vertex; 3] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Renderer` is never constructed [INFO] [stdout] --> src/open_gl.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct Renderer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw` are never used [INFO] [stdout] --> src/open_gl.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 262 | impl Renderer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 263 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_window` is never used [INFO] [stdout] --> src/open_gl.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 295 | pub fn build_window() -> () { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `age`, and `admin` are never read [INFO] [stdout] --> src/memory_alignment.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Member { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | age: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | admin: bool, [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/count_words.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | let file = open_file("./resources/sample.txt"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | file.lines().fold(0, |acc, _| acc + 1) [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: aborting due to 1 previous error; 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello-rust` (bin "hello-rust") due to 2 previous errors; 33 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hello-rust` (bin "hello-rust" test) due to 2 previous errors; 33 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ad0b16c167b12f3545257390ef0ceee1ee0acd07f5f35886bf8fa6cbc394c033", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad0b16c167b12f3545257390ef0ceee1ee0acd07f5f35886bf8fa6cbc394c033", kill_on_drop: false }` [INFO] [stdout] ad0b16c167b12f3545257390ef0ceee1ee0acd07f5f35886bf8fa6cbc394c033