[INFO] cloning repository https://github.com/zimingYS/LrnWgpu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zimingYS/LrnWgpu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FzimingYS%2FLrnWgpu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FzimingYS%2FLrnWgpu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e2b59c62d8e2a694869b1f37b7a53bffc2856f2 [INFO] building zimingYS/LrnWgpu against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FzimingYS%2FLrnWgpu" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zimingYS/LrnWgpu [INFO] finished tweaking git repo https://github.com/zimingYS/LrnWgpu [INFO] tweaked toml for git repo https://github.com/zimingYS/LrnWgpu written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zimingYS/LrnWgpu on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zimingYS/LrnWgpu 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dwrote v0.11.2 [INFO] [stderr] Downloaded crossfont v0.5.2 [INFO] [stderr] Downloaded renderdoc-sys v0.7.1 [INFO] [stderr] Downloaded core-text v20.1.0 [INFO] [stderr] Downloaded pollster v0.2.5 [INFO] [stderr] Downloaded inplace_it v0.3.6 [INFO] [stderr] Downloaded tobj v3.2.5 [INFO] [stderr] Downloaded d3d12 v0.4.1 [INFO] [stderr] Downloaded wgpu-types v0.12.0 [INFO] [stderr] Downloaded wgpu v0.12.0 [INFO] [stderr] Downloaded wgpu-hal v0.12.5 [INFO] [stderr] Downloaded wgpu-core v0.12.2 [INFO] [stderr] Downloaded naga v0.8.5 [INFO] [stderr] Downloaded ash v0.34.0+1.2.203 [INFO] [stderr] Downloaded metal v0.23.1 [INFO] [stderr] Downloaded libc v0.2.166 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd3ba349252c6f8d85f39ebf7796b269f3871e77089c9da03650e2448d0c695b [INFO] running `Command { std: "docker" "start" "-a" "cd3ba349252c6f8d85f39ebf7796b269f3871e77089c9da03650e2448d0c695b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd3ba349252c6f8d85f39ebf7796b269f3871e77089c9da03650e2448d0c695b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd3ba349252c6f8d85f39ebf7796b269f3871e77089c9da03650e2448d0c695b", kill_on_drop: false }` [INFO] [stdout] cd3ba349252c6f8d85f39ebf7796b269f3871e77089c9da03650e2448d0c695b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3677ce30d9b3f7b9b71afced0bcbd601636b85980247b25d18a524445cf661de [INFO] running `Command { std: "docker" "start" "-a" "3677ce30d9b3f7b9b71afced0bcbd601636b85980247b25d18a524445cf661de", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.166 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling xml-rs v0.8.23 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling cmake v0.1.52 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling ash v0.34.0+1.2.203 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling fdeflate v0.3.6 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling crossfont v0.5.2 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling xcursor v0.3.8 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling foreign-types-shared v0.3.1 [INFO] [stderr] Compiling gpu-alloc v0.5.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling wgpu-core v0.12.2 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling png v0.17.14 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling wgpu-types v0.12.0 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling inplace_it v0.3.6 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling approx v0.4.0 [INFO] [stderr] Compiling LrnWgpu v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling pollster v0.2.5 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling servo-fontconfig v0.5.1 [INFO] [stderr] Compiling freetype-rs v0.26.0 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling tobj v3.2.5 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling bytemuck_derive v1.8.0 [INFO] [stderr] Compiling foreign-types-macros v0.2.3 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling foreign-types v0.5.0 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling bytemuck v1.20.0 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling tiny-skia-path v0.7.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling naga v0.8.5 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tiny-skia v0.7.0 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling wgpu-hal v0.12.5 [INFO] [stderr] Compiling wgpu v0.12.0 [INFO] [stderr] Compiling sctk-adwaita v0.4.3 [INFO] [stderr] Compiling winit v0.27.5 [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:134:41 [INFO] [stdout] | [INFO] [stdout] 129 | VirtualKeyCode::D | VirtualKeyCode::Right => { [INFO] [stdout] | --------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 134 | VirtualKeyCode::Q | VirtualKeyCode::Right => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:138:41 [INFO] [stdout] | [INFO] [stdout] 129 | VirtualKeyCode::D | VirtualKeyCode::Right => { [INFO] [stdout] | --------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 138 | VirtualKeyCode::E | VirtualKeyCode::Right => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INSTANCE_DISPLACEMENT` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const INSTANCE_DISPLACEMENT: cgmath::Vector3 = cgmath::Vector3::new(NUM_INSTANCES_PER_ROW as f32 * 0.5, 0.0, NUM_INSTANCES_PER_ROW a... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct CameraUniform { [INFO] [stdout] | ^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/main.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | / #[repr(C)] [INFO] [stdout] 37 | | // 这样配置可以让我们将其存储在缓冲区之中 [INFO] [stdout] 38 | | #[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 39 | | struct CameraUniform { [INFO] [stdout] ... | [INFO] [stdout] 42 | | view_proj: [[f32; 4]; 4], [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | struct InstanceRaw{ [INFO] [stdout] | ^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/main.rs:203:1 [INFO] [stdout] | [INFO] [stdout] 203 | / #[repr(C)] [INFO] [stdout] 204 | | #[derive(Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 205 | | struct InstanceRaw{ [INFO] [stdout] 206 | | model : [[f32 ; 4]; 4], [INFO] [stdout] 207 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `diffuse_bind_group` and `diffuse_texture` are never read [INFO] [stdout] --> src/main.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 255 | struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 262 | diffuse_bind_group: BindGroup, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 263 | diffuse_texture: texture::Texture, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `texture` is never read [INFO] [stdout] --> src/texture.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Texture { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | pub texture: wgpu::Texture, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/texture.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Texture { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 14 | //读取纹理 [INFO] [stdout] 15 | pub fn load>( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/model.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ModelVertex { [INFO] [stdout] | ^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/model.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / #[repr(C)] [INFO] [stdout] 10 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 11 | | pub struct ModelVertex { [INFO] [stdout] 12 | | pub position: [f32; 3], [INFO] [stdout] 13 | | pub tex_coords: [f32; 2], [INFO] [stdout] 14 | | pub normal: [f32; 3], [INFO] [stdout] 15 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "3677ce30d9b3f7b9b71afced0bcbd601636b85980247b25d18a524445cf661de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3677ce30d9b3f7b9b71afced0bcbd601636b85980247b25d18a524445cf661de", kill_on_drop: false }` [INFO] [stdout] 3677ce30d9b3f7b9b71afced0bcbd601636b85980247b25d18a524445cf661de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e38f84707589055181a4b592b975ebfcfbb102b2d26b3138bb0b73eb33702d4f [INFO] running `Command { std: "docker" "start" "-a" "e38f84707589055181a4b592b975ebfcfbb102b2d26b3138bb0b73eb33702d4f", kill_on_drop: false }` [INFO] [stderr] Compiling LrnWgpu v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:134:41 [INFO] [stdout] | [INFO] [stdout] 129 | VirtualKeyCode::D | VirtualKeyCode::Right => { [INFO] [stdout] | --------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 134 | VirtualKeyCode::Q | VirtualKeyCode::Right => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:138:41 [INFO] [stdout] | [INFO] [stdout] 129 | VirtualKeyCode::D | VirtualKeyCode::Right => { [INFO] [stdout] | --------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 138 | VirtualKeyCode::E | VirtualKeyCode::Right => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INSTANCE_DISPLACEMENT` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const INSTANCE_DISPLACEMENT: cgmath::Vector3 = cgmath::Vector3::new(NUM_INSTANCES_PER_ROW as f32 * 0.5, 0.0, NUM_INSTANCES_PER_ROW a... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct CameraUniform { [INFO] [stdout] | ^^^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/main.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | / #[repr(C)] [INFO] [stdout] 37 | | // 这样配置可以让我们将其存储在缓冲区之中 [INFO] [stdout] 38 | | #[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 39 | | struct CameraUniform { [INFO] [stdout] ... | [INFO] [stdout] 42 | | view_proj: [[f32; 4]; 4], [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | struct InstanceRaw{ [INFO] [stdout] | ^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/main.rs:203:1 [INFO] [stdout] | [INFO] [stdout] 203 | / #[repr(C)] [INFO] [stdout] 204 | | #[derive(Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 205 | | struct InstanceRaw{ [INFO] [stdout] 206 | | model : [[f32 ; 4]; 4], [INFO] [stdout] 207 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `diffuse_bind_group` and `diffuse_texture` are never read [INFO] [stdout] --> src/main.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 255 | struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 262 | diffuse_bind_group: BindGroup, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 263 | diffuse_texture: texture::Texture, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `texture` is never read [INFO] [stdout] --> src/texture.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Texture { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | pub texture: wgpu::Texture, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load` is never used [INFO] [stdout] --> src/texture.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Texture { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 14 | //读取纹理 [INFO] [stdout] 15 | pub fn load>( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/model.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ModelVertex { [INFO] [stdout] | ^^^^^^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/model.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / #[repr(C)] [INFO] [stdout] 10 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 11 | | pub struct ModelVertex { [INFO] [stdout] 12 | | pub position: [f32; 3], [INFO] [stdout] 13 | | pub tex_coords: [f32; 2], [INFO] [stdout] 14 | | pub normal: [f32; 3], [INFO] [stdout] 15 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.17s [INFO] running `Command { std: "docker" "inspect" "e38f84707589055181a4b592b975ebfcfbb102b2d26b3138bb0b73eb33702d4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e38f84707589055181a4b592b975ebfcfbb102b2d26b3138bb0b73eb33702d4f", kill_on_drop: false }` [INFO] [stdout] e38f84707589055181a4b592b975ebfcfbb102b2d26b3138bb0b73eb33702d4f