[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 try#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fernestochero%2Fhello-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ernestochero/hello-rust on toolchain 1f308f12738d8cc40bb23bf0c8114b37c164bb49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "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-6-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" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce8d3ade5f1ce25299e9f3d6dcabf151b8a5bc92bd02daae301c08b977d0879b [INFO] running `Command { std: "docker" "start" "-a" "ce8d3ade5f1ce25299e9f3d6dcabf151b8a5bc92bd02daae301c08b977d0879b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce8d3ade5f1ce25299e9f3d6dcabf151b8a5bc92bd02daae301c08b977d0879b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce8d3ade5f1ce25299e9f3d6dcabf151b8a5bc92bd02daae301c08b977d0879b", kill_on_drop: false }` [INFO] [stdout] ce8d3ade5f1ce25299e9f3d6dcabf151b8a5bc92bd02daae301c08b977d0879b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6395da5994e269c2fa8a3abf94e550fb62b99f842a23922d71239e3a395345e9 [INFO] running `Command { std: "docker" "start" "-a" "6395da5994e269c2fa8a3abf94e550fb62b99f842a23922d71239e3a395345e9", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling pkg-config v0.3.25 [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 log v0.4.17 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Checking libloading v0.7.3 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling libm v0.2.5 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking dlib v0.5.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [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] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking bytemuck v1.12.1 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Checking miniz_oxide v0.5.4 [INFO] [stderr] Compiling x11-dl v2.20.0 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.0 [INFO] [stderr] Compiling crossfont v0.5.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking foreign-types-shared v0.3.1 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking tiny-skia-path v0.7.0 [INFO] [stderr] Checking png v0.17.6 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Checking safe_arch v0.5.2 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Checking nix v0.24.2 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking memmap2 v0.5.7 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking matrixmultiply v0.3.2 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Checking servo-fontconfig v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking freetype-rs v0.26.0 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking raw-window-handle v0.5.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking tiny-skia v0.7.0 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking percent-encoding v2.2.0 [INFO] [stderr] Checking smawk v0.3.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking num-complex v0.4.2 [INFO] [stderr] Checking noisy_float v0.2.0 [INFO] [stderr] Checking textwrap v0.13.4 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking itertools v0.10.4 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking tagger v3.2.1 [INFO] [stderr] Checking smallvec v0.4.5 [INFO] [stderr] Checking poloto v2.20.4 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking ferris-says v0.2.1 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking wayland-egl v0.29.5 [INFO] [stderr] Compiling thiserror-impl v1.0.35 [INFO] [stderr] Compiling foreign-types-macros v0.2.2 [INFO] [stderr] Checking foreign-types v0.5.0 [INFO] [stderr] Checking ndarray-stats v0.5.1 [INFO] [stderr] Checking ndarray-rand v0.14.0 [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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.98s [INFO] running `Command { std: "docker" "inspect" "6395da5994e269c2fa8a3abf94e550fb62b99f842a23922d71239e3a395345e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6395da5994e269c2fa8a3abf94e550fb62b99f842a23922d71239e3a395345e9", kill_on_drop: false }` [INFO] [stdout] 6395da5994e269c2fa8a3abf94e550fb62b99f842a23922d71239e3a395345e9