[INFO] fetching crate gltf-viewer-lib 0.4.5-alpha.0... [INFO] testing gltf-viewer-lib-0.4.5-alpha.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate gltf-viewer-lib 0.4.5-alpha.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate gltf-viewer-lib 0.4.5-alpha.0 [INFO] finished tweaking crates.io crate gltf-viewer-lib 0.4.5-alpha.0 [INFO] tweaked toml for crates.io crate gltf-viewer-lib 0.4.5-alpha.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate gltf-viewer-lib 0.4.5-alpha.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gltf-viewer-lib 0.4.5-alpha.0 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-derive v0.2.4 [INFO] [stderr] Downloaded png v0.14.0 [INFO] [stderr] Downloaded inflate v0.4.4 [INFO] [stderr] Downloaded objc v0.2.5 [INFO] [stderr] Downloaded core-graphics v0.16.0 [INFO] [stderr] Downloaded bit-vec v0.5.0 [INFO] [stderr] Downloaded num-complex v0.2.1 [INFO] [stderr] Downloaded bit-set v0.5.0 [INFO] [stderr] Downloaded num_cpus v1.9.0 [INFO] [stderr] Downloaded core-foundation v0.6.3 [INFO] [stderr] Downloaded serde_json v1.0.37 [INFO] [stderr] Downloaded collision v0.20.1 [INFO] [stderr] Downloaded wayland-protocols v0.20.12 [INFO] [stderr] Downloaded winit v0.17.2 [INFO] [stderr] Downloaded nix v0.11.0 [INFO] [stderr] Downloaded num-bigint v0.2.2 [INFO] [stderr] Downloaded rayon v1.0.3 [INFO] [stderr] Downloaded deflate v0.7.19 [INFO] [stderr] Downloaded libc v0.2.48 [INFO] [stderr] Downloaded smithay-client-toolkit v0.3.0 [INFO] [stderr] Downloaded cc v1.0.28 [INFO] [stderr] Downloaded wayland-client v0.20.12 [INFO] [stderr] Downloaded x11-dl v2.18.3 [INFO] [stderr] Downloaded rayon-core v1.4.1 [INFO] [stderr] Downloaded serde_derive v1.0.85 [INFO] [stderr] Downloaded num-rational v0.2.1 [INFO] [stderr] Downloaded image v0.21.0 [INFO] [stderr] Downloaded glutin v0.18.0 [INFO] [stderr] Downloaded gif v0.10.1 [INFO] [stderr] Downloaded crossbeam-epoch v0.3.1 [INFO] [stderr] Downloaded jpeg-decoder v0.1.15 [INFO] [stderr] Downloaded syn v0.15.26 [INFO] [stderr] Downloaded cocoa v0.17.0 [INFO] [stderr] Downloaded wayland-scanner v0.20.12 [INFO] [stderr] Downloaded num v0.2.0 [INFO] [stderr] Downloaded gleam v0.6.8 [INFO] [stderr] Downloaded wayland-sys v0.20.12 [INFO] [stderr] Downloaded crossbeam-deque v0.2.0 [INFO] [stderr] Downloaded smallvec v0.6.8 [INFO] [stderr] Downloaded fuchsia-cprng v0.1.0 [INFO] [stderr] Downloaded wayland-commons v0.20.12 [INFO] [stderr] Downloaded crossbeam-utils v0.2.2 [INFO] [stderr] Downloaded safe-transmute v0.10.1 [INFO] [stderr] Downloaded proc-macro2 v0.4.26 [INFO] [stderr] Downloaded term v0.5.1 [INFO] [stderr] Downloaded git-version v0.2.1 [INFO] [stderr] Downloaded gltf-derive v0.15.0 [INFO] [stderr] Downloaded gltf v0.15.0 [INFO] [stderr] Downloaded gltf-json v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54fd404f1026da5aa6476fe00e18fc766f88009ad0fc9b94684b2c56a6fdc19f [INFO] running `Command { std: "docker" "start" "-a" "54fd404f1026da5aa6476fe00e18fc766f88009ad0fc9b94684b2c56a6fdc19f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54fd404f1026da5aa6476fe00e18fc766f88009ad0fc9b94684b2c56a6fdc19f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54fd404f1026da5aa6476fe00e18fc766f88009ad0fc9b94684b2c56a6fdc19f", kill_on_drop: false }` [INFO] [stdout] 54fd404f1026da5aa6476fe00e18fc766f88009ad0fc9b94684b2c56a6fdc19f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 10395994b94db2a76c1712010bff32ffca98b9c80b7c35584d48dbfbf421c18a [INFO] running `Command { std: "docker" "start" "-a" "10395994b94db2a76c1712010bff32ffca98b9c80b7c35584d48dbfbf421c18a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling proc-macro2 v0.4.26 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling cc v1.0.28 [INFO] [stderr] Compiling serde v1.0.85 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling downcast-rs v1.0.3 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling smallvec v0.6.8 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling num_cpus v1.9.0 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling wayland-scanner v0.20.12 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling syn v0.15.26 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling wayland-client v0.20.12 [INFO] [stderr] Compiling wayland-protocols v0.20.12 [INFO] [stderr] Compiling x11-dl v2.18.3 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling wayland-sys v0.20.12 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling inflate v0.4.4 [INFO] [stderr] Compiling deflate v0.7.19 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling wayland-commons v0.20.12 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling itoa v0.4.3 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling glutin v0.18.0 [INFO] [stderr] Compiling gif v0.10.1 [INFO] [stderr] Compiling png v0.14.0 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling gl v0.14.0 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling bit-vec v0.5.0 [INFO] [stderr] Compiling safe-transmute v0.10.1 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling bit-set v0.5.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling term v0.5.1 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling simplelog v0.7.4 [INFO] [stderr] Compiling serde_derive v1.0.85 [INFO] [stderr] Compiling gltf-derive v0.15.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.3.0 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling winit v0.17.2 [INFO] [stderr] Compiling serde_json v1.0.37 [INFO] [stderr] Compiling gltf-json v0.15.0 [INFO] [stderr] Compiling image v0.21.0 [INFO] [stderr] Compiling collision v0.20.1 [INFO] [stderr] Compiling gltf v0.15.0 [INFO] [stderr] Compiling gltf-viewer-lib v0.4.5-alpha.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::primitive::*; [INFO] [stdout] | ------------------ but the name `Texture` in the type namespace is also re-exported here [INFO] [stdout] ... [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `Texture` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::texture::*` [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Texture` is never constructed [INFO] [stdout] --> src/render/primitive.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Texture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Texture` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:387:67 [INFO] [stdout] | [INFO] [stdout] 387 | gl::VertexAttribPointer(0, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, position) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:390:67 [INFO] [stdout] | [INFO] [stdout] 390 | gl::VertexAttribPointer(1, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, normal) as *const c_void); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:393:67 [INFO] [stdout] | [INFO] [stdout] 393 | gl::VertexAttribPointer(2, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tangent) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:396:67 [INFO] [stdout] | [INFO] [stdout] 396 | gl::VertexAttribPointer(3, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_0) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:399:67 [INFO] [stdout] | [INFO] [stdout] 399 | gl::VertexAttribPointer(4, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_1) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:402:67 [INFO] [stdout] | [INFO] [stdout] 402 | gl::VertexAttribPointer(5, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, color_0) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:406:76 [INFO] [stdout] | [INFO] [stdout] 406 | gl::VertexAttribPointer(6, 4, gl::UNSIGNED_SHORT, gl::FALSE, size, offset_of!(Vertex, joints_0) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:409:67 [INFO] [stdout] | [INFO] [stdout] 409 | gl::VertexAttribPointer(7, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, weights_0) as *const c_void); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _________________________________^ [INFO] [stdout] 51 | | g_img.index(), mime_type)), [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 51 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 73 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 72 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 73 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 84 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 83 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 84 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::texture::*` [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `screenshot_save` and `multiscreenshot_save` are never used [INFO] [stdout] --> src/viewer.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl GltfViewer { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 389 | pub fn screenshot_save(&mut self) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn multiscreenshot_save(&mut self, count: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `u_DiffuseEnvSampler`, `u_SpecularEnvSampler`, `u_brdfLUT`, `u_ScaleDiffBaseMR`, `u_ScaleFGDSpec`, and `u_ScaleIBLAmbient` are never read [INFO] [stdout] --> src/shader.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct PbrUniformLocations { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 228 | pub u_DiffuseEnvSampler: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 229 | pub u_SpecularEnvSampler: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 230 | pub u_brdfLUT: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub u_ScaleDiffBaseMR: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 260 | pub u_ScaleFGDSpec: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 261 | pub u_ScaleIBLAmbient: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `flags` is never read [INFO] [stdout] --> src/shader.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct PbrShader { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 265 | pub shader: Shader, [INFO] [stdout] 266 | pub flags: ShaderFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `images` is never read [INFO] [stdout] --> src/importdata.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ImportData { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub images: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/scene.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 10 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/mesh.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Mesh { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Texture` is never constructed [INFO] [stdout] --> src/render/primitive.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Texture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Texture` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/material.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Material { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 13 | pub index: Option, /// glTF index [INFO] [stdout] 14 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/texture.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Texture { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 20 | pub index: usize, // glTF index [INFO] [stdout] 21 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:387:67 [INFO] [stdout] | [INFO] [stdout] 387 | gl::VertexAttribPointer(0, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, position) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:390:67 [INFO] [stdout] | [INFO] [stdout] 390 | gl::VertexAttribPointer(1, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, normal) as *const c_void); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:393:67 [INFO] [stdout] | [INFO] [stdout] 393 | gl::VertexAttribPointer(2, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tangent) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:396:67 [INFO] [stdout] | [INFO] [stdout] 396 | gl::VertexAttribPointer(3, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_0) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:399:67 [INFO] [stdout] | [INFO] [stdout] 399 | gl::VertexAttribPointer(4, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_1) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:402:67 [INFO] [stdout] | [INFO] [stdout] 402 | gl::VertexAttribPointer(5, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, color_0) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:406:76 [INFO] [stdout] | [INFO] [stdout] 406 | gl::VertexAttribPointer(6, 4, gl::UNSIGNED_SHORT, gl::FALSE, size, offset_of!(Vertex, joints_0) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:409:67 [INFO] [stdout] | [INFO] [stdout] 409 | gl::VertexAttribPointer(7, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, weights_0) as *const c_void); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _________________________________^ [INFO] [stdout] 51 | | g_img.index(), mime_type)), [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 51 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 73 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 72 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 73 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 84 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 83 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 84 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.80s [INFO] running `Command { std: "docker" "inspect" "10395994b94db2a76c1712010bff32ffca98b9c80b7c35584d48dbfbf421c18a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10395994b94db2a76c1712010bff32ffca98b9c80b7c35584d48dbfbf421c18a", kill_on_drop: false }` [INFO] [stdout] 10395994b94db2a76c1712010bff32ffca98b9c80b7c35584d48dbfbf421c18a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ce16fdb7836be170e907be654a440ba8c409bdca576f65d60521b502b880687f [INFO] running `Command { std: "docker" "start" "-a" "ce16fdb7836be170e907be654a440ba8c409bdca576f65d60521b502b880687f", kill_on_drop: false }` [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::primitive::*; [INFO] [stdout] | ------------------ but the name `Texture` in the type namespace is also re-exported here [INFO] [stdout] ... [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `Texture` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::texture::*` [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Texture` is never constructed [INFO] [stdout] --> src/render/primitive.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Texture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Texture` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:387:67 [INFO] [stdout] | [INFO] [stdout] 387 | gl::VertexAttribPointer(0, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, position) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:390:67 [INFO] [stdout] | [INFO] [stdout] 390 | gl::VertexAttribPointer(1, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, normal) as *const c_void); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:393:67 [INFO] [stdout] | [INFO] [stdout] 393 | gl::VertexAttribPointer(2, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tangent) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:396:67 [INFO] [stdout] | [INFO] [stdout] 396 | gl::VertexAttribPointer(3, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_0) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:399:67 [INFO] [stdout] | [INFO] [stdout] 399 | gl::VertexAttribPointer(4, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_1) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:402:67 [INFO] [stdout] | [INFO] [stdout] 402 | gl::VertexAttribPointer(5, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, color_0) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:406:76 [INFO] [stdout] | [INFO] [stdout] 406 | gl::VertexAttribPointer(6, 4, gl::UNSIGNED_SHORT, gl::FALSE, size, offset_of!(Vertex, joints_0) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling gltf-viewer-lib v0.4.5-alpha.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:409:67 [INFO] [stdout] | [INFO] [stdout] 409 | gl::VertexAttribPointer(7, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, weights_0) as *const c_void); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _________________________________^ [INFO] [stdout] 51 | | g_img.index(), mime_type)), [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 51 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 73 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 72 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 73 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 84 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 83 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 84 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::texture::*` [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::primitive::*; [INFO] [stdout] | ------------------ but the name `Texture` in the type namespace is also re-exported here [INFO] [stdout] ... [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `Texture` in the type namespace is first re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::texture::*` [INFO] [stdout] --> src/render/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::texture::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `screenshot_save` and `multiscreenshot_save` are never used [INFO] [stdout] --> src/viewer.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl GltfViewer { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 389 | pub fn screenshot_save(&mut self) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn multiscreenshot_save(&mut self, count: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `u_DiffuseEnvSampler`, `u_SpecularEnvSampler`, `u_brdfLUT`, `u_ScaleDiffBaseMR`, `u_ScaleFGDSpec`, and `u_ScaleIBLAmbient` are never read [INFO] [stdout] --> src/shader.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 214 | pub struct PbrUniformLocations { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 228 | pub u_DiffuseEnvSampler: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 229 | pub u_SpecularEnvSampler: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 230 | pub u_brdfLUT: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub u_ScaleDiffBaseMR: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 260 | pub u_ScaleFGDSpec: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 261 | pub u_ScaleIBLAmbient: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `flags` is never read [INFO] [stdout] --> src/shader.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct PbrShader { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 265 | pub shader: Shader, [INFO] [stdout] 266 | pub flags: ShaderFlags, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `images` is never read [INFO] [stdout] --> src/importdata.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ImportData { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub images: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/scene.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 10 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/mesh.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Mesh { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Texture` is never constructed [INFO] [stdout] --> src/render/primitive.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Texture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Texture` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/material.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Material { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 13 | pub index: Option, /// glTF index [INFO] [stdout] 14 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/render/texture.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Texture { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 20 | pub index: usize, // glTF index [INFO] [stdout] 21 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:387:67 [INFO] [stdout] | [INFO] [stdout] 387 | gl::VertexAttribPointer(0, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, position) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:390:67 [INFO] [stdout] | [INFO] [stdout] 390 | gl::VertexAttribPointer(1, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, normal) as *const c_void); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:393:67 [INFO] [stdout] | [INFO] [stdout] 393 | gl::VertexAttribPointer(2, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tangent) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:396:67 [INFO] [stdout] | [INFO] [stdout] 396 | gl::VertexAttribPointer(3, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_0) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:399:67 [INFO] [stdout] | [INFO] [stdout] 399 | gl::VertexAttribPointer(4, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_1) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:402:67 [INFO] [stdout] | [INFO] [stdout] 402 | gl::VertexAttribPointer(5, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, color_0) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:406:76 [INFO] [stdout] | [INFO] [stdout] 406 | gl::VertexAttribPointer(6, 4, gl::UNSIGNED_SHORT, gl::FALSE, size, offset_of!(Vertex, joints_0) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:409:67 [INFO] [stdout] | [INFO] [stdout] 409 | gl::VertexAttribPointer(7, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, weights_0) as *const c_void); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _________________________________^ [INFO] [stdout] 51 | | g_img.index(), mime_type)), [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 51 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 73 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 72 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 73 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 84 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 83 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 84 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Texture` is never constructed [INFO] [stdout] --> src/render/primitive.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Texture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Texture` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:387:67 [INFO] [stdout] | [INFO] [stdout] 387 | gl::VertexAttribPointer(0, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, position) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:390:67 [INFO] [stdout] | [INFO] [stdout] 390 | gl::VertexAttribPointer(1, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, normal) as *const c_void); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:393:67 [INFO] [stdout] | [INFO] [stdout] 393 | gl::VertexAttribPointer(2, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tangent) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:396:67 [INFO] [stdout] | [INFO] [stdout] 396 | gl::VertexAttribPointer(3, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_0) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:399:67 [INFO] [stdout] | [INFO] [stdout] 399 | gl::VertexAttribPointer(4, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_1) as *const c_void); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:402:67 [INFO] [stdout] | [INFO] [stdout] 402 | gl::VertexAttribPointer(5, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, color_0) as *const c_void); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:406:76 [INFO] [stdout] | [INFO] [stdout] 406 | gl::VertexAttribPointer(6, 4, gl::UNSIGNED_SHORT, gl::FALSE, size, offset_of!(Vertex, joints_0) as *const c_void); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/macros.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] ::: src/render/primitive.rs:409:67 [INFO] [stdout] | [INFO] [stdout] 409 | gl::VertexAttribPointer(7, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, weights_0) as *const c_void); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _________________________________^ [INFO] [stdout] 51 | | g_img.index(), mime_type)), [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 50 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 51 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 73 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 72 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 73 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/render/texture.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 84 | | g_img.index(), mime_type)), [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 83 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stdout] 84 ~ g_img.index(), mime_type), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.28s [INFO] running `Command { std: "docker" "inspect" "ce16fdb7836be170e907be654a440ba8c409bdca576f65d60521b502b880687f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce16fdb7836be170e907be654a440ba8c409bdca576f65d60521b502b880687f", kill_on_drop: false }` [INFO] [stdout] ce16fdb7836be170e907be654a440ba8c409bdca576f65d60521b502b880687f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d716bc9dd0e9f27d193ca25d826fcbbf1e1f6b68e2229f0b3f6411991a02c5ea [INFO] running `Command { std: "docker" "start" "-a" "d716bc9dd0e9f27d193ca25d826fcbbf1e1f6b68e2229f0b3f6411991a02c5ea", kill_on_drop: false }` [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/render/mod.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub use self::primitive::*; [INFO] [stderr] | ------------------ but the name `Texture` in the type namespace is also re-exported here [INFO] [stderr] ... [INFO] [stderr] 18 | pub use self::texture::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ the name `Texture` in the type namespace is first re-exported here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::texture::*` [INFO] [stderr] --> src/render/mod.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub use self::texture::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Texture` is never constructed [INFO] [stderr] --> src/render/primitive.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub struct Texture { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Texture` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:387:67 [INFO] [stderr] | [INFO] [stderr] 387 | gl::VertexAttribPointer(0, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, position) as *const c_void); [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:390:67 [INFO] [stderr] | [INFO] [stderr] 390 | gl::VertexAttribPointer(1, 3, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, normal) as *const c_void); [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:393:67 [INFO] [stderr] | [INFO] [stderr] 393 | gl::VertexAttribPointer(2, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tangent) as *const c_void); [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:396:67 [INFO] [stderr] | [INFO] [stderr] 396 | gl::VertexAttribPointer(3, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_0) as *const c_void); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:399:67 [INFO] [stderr] | [INFO] [stderr] 399 | gl::VertexAttribPointer(4, 2, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, tex_coord_1) as *const c_void); [INFO] [stderr] | ------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:402:67 [INFO] [stderr] | [INFO] [stderr] 402 | gl::VertexAttribPointer(5, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, color_0) as *const c_void); [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:406:76 [INFO] [stderr] | [INFO] [stderr] 406 | gl::VertexAttribPointer(6, 4, gl::UNSIGNED_SHORT, gl::FALSE, size, offset_of!(Vertex, joints_0) as *const c_void); [INFO] [stderr] | ---------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> src/macros.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | &(*(ptr::null() as *const $ty)).$field as *const _ as usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] ::: src/render/primitive.rs:409:67 [INFO] [stderr] | [INFO] [stderr] 409 | gl::VertexAttribPointer(7, 4, gl::FLOAT, gl::FALSE, size, offset_of!(Vertex, weights_0) as *const c_void); [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/render/texture.rs:50:33 [INFO] [stderr] | [INFO] [stderr] 50 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stderr] | _________________________________^ [INFO] [stderr] 51 | | g_img.index(), mime_type)), [INFO] [stderr] | |_________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 50 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stderr] 51 ~ g_img.index(), mime_type), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/render/texture.rs:72:37 [INFO] [stderr] | [INFO] [stderr] 72 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stderr] | _____________________________________^ [INFO] [stderr] 73 | | g_img.index(), mime_type)), [INFO] [stderr] | |_____________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 72 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stderr] 73 ~ g_img.index(), mime_type), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/render/texture.rs:83:37 [INFO] [stderr] | [INFO] [stderr] 83 | _ => panic!(format!("unsupported image type (image: {}, mime_type: {})", [INFO] [stderr] | _____________________________________^ [INFO] [stderr] 84 | | g_img.index(), mime_type)), [INFO] [stderr] | |_____________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 83 ~ _ => panic!("unsupported image type (image: {}, mime_type: {})", [INFO] [stderr] 84 ~ g_img.index(), mime_type), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `gltf-viewer-lib` (lib) generated 14 warnings (run `cargo fix --lib -p gltf-viewer-lib` to apply 4 suggestions) [INFO] [stderr] warning: `gltf-viewer-lib` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] warning: methods `screenshot_save` and `multiscreenshot_save` are never used [INFO] [stderr] --> src/viewer.rs:389:12 [INFO] [stderr] | [INFO] [stderr] 66 | impl GltfViewer { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 389 | pub fn screenshot_save(&mut self) -> DynamicImage { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 412 | pub fn multiscreenshot_save(&mut self, count: u32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `u_DiffuseEnvSampler`, `u_SpecularEnvSampler`, `u_brdfLUT`, `u_ScaleDiffBaseMR`, `u_ScaleFGDSpec`, and `u_ScaleIBLAmbient` are never read [INFO] [stderr] --> src/shader.rs:228:9 [INFO] [stderr] | [INFO] [stderr] 214 | pub struct PbrUniformLocations { [INFO] [stderr] | ------------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 228 | pub u_DiffuseEnvSampler: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 229 | pub u_SpecularEnvSampler: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 230 | pub u_brdfLUT: i32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 259 | pub u_ScaleDiffBaseMR: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 260 | pub u_ScaleFGDSpec: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 261 | pub u_ScaleIBLAmbient: i32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `flags` is never read [INFO] [stderr] --> src/shader.rs:266:9 [INFO] [stderr] | [INFO] [stderr] 264 | pub struct PbrShader { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 265 | pub shader: Shader, [INFO] [stderr] 266 | pub flags: ShaderFlags, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `images` is never read [INFO] [stderr] --> src/importdata.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct ImportData { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 7 | pub images: Vec, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/render/scene.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Scene { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] 10 | pub name: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/render/mesh.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct Mesh { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 17 | pub name: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Texture` is never constructed [INFO] [stderr] --> src/render/primitive.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub struct Texture { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Texture` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/render/material.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct Material { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 13 | pub index: Option, /// glTF index [INFO] [stderr] 14 | pub name: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/render/texture.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct Texture { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 20 | pub index: usize, // glTF index [INFO] [stderr] 21 | pub name: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: `gltf-viewer-lib` (bin "gltf-viewer-lib" test) generated 21 warnings (12 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/gltf_viewer_lib-a1e11688ce10305f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/gltf_viewer_lib-b34ae2dc9c5c349d) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::print_struct_sizes ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d716bc9dd0e9f27d193ca25d826fcbbf1e1f6b68e2229f0b3f6411991a02c5ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d716bc9dd0e9f27d193ca25d826fcbbf1e1f6b68e2229f0b3f6411991a02c5ea", kill_on_drop: false }` [INFO] [stdout] d716bc9dd0e9f27d193ca25d826fcbbf1e1f6b68e2229f0b3f6411991a02c5ea