[INFO] cloning repository https://github.com/jonahs99/strategy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jonahs99/strategy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonahs99%2Fstrategy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonahs99%2Fstrategy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2ce0debf6a3420c2229ca4b643462f368121ee9f [INFO] building jonahs99/strategy against master#461e8078010433ff7de2db2aaae8a3cfb0847215 for pr-94962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonahs99%2Fstrategy" "/workspace/builds/worker-102/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-102/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jonahs99/strategy on toolchain 461e8078010433ff7de2db2aaae8a3cfb0847215 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jonahs99/strategy [INFO] finished tweaking git repo https://github.com/jonahs99/strategy [INFO] tweaked toml for git repo https://github.com/jonahs99/strategy written to /workspace/builds/worker-102/source/Cargo.toml [INFO] crate git repo https://github.com/jonahs99/strategy already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gfx-backend-vulkan v0.8.0 [INFO] [stderr] Downloaded gfx-backend-metal v0.8.2 [INFO] [stderr] Downloaded gfx-backend-gl v0.8.1 [INFO] [stderr] Downloaded thunderdome v0.4.1 [INFO] [stderr] Downloaded d3d12 v0.4.0 [INFO] [stderr] Downloaded gfx-backend-dx11 v0.8.0 [INFO] [stderr] Downloaded gfx-hal v0.8.0 [INFO] [stderr] Downloaded wgpu-types v0.8.0 [INFO] [stderr] Downloaded profiling v1.0.1 [INFO] [stderr] Downloaded wgpu v0.8.1 [INFO] [stderr] Downloaded gfx-auxil v0.9.0 [INFO] [stderr] Downloaded gfx-backend-dx12 v0.8.0 [INFO] [stderr] Downloaded gfx-backend-empty v0.8.0 [INFO] [stderr] Downloaded mio-misc v1.0.1 [INFO] [stderr] Downloaded naga v0.4.2 [INFO] [stderr] Downloaded wgpu-core v0.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-102/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-102/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 570fb52f43f81c7c385f211761ed8067fa8e3d4884d4bf3471256cf7cff1d599 [INFO] running `Command { std: "docker" "start" "-a" "570fb52f43f81c7c385f211761ed8067fa8e3d4884d4bf3471256cf7cff1d599", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "570fb52f43f81c7c385f211761ed8067fa8e3d4884d4bf3471256cf7cff1d599", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "570fb52f43f81c7c385f211761ed8067fa8e3d4884d4bf3471256cf7cff1d599", kill_on_drop: false }` [INFO] [stdout] 570fb52f43f81c7c385f211761ed8067fa8e3d4884d4bf3471256cf7cff1d599 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-102/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-102/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c352886135a1c2c68365774100a56fe9a38ee1dd33087525bd4a9c088973077 [INFO] running `Command { std: "docker" "start" "-a" "3c352886135a1c2c68365774100a56fe9a38ee1dd33087525bd4a9c088973077", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling glow v0.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling inplace_it v0.3.3 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling profiling v1.0.1 [INFO] [stderr] Compiling winit v0.25.0 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling wgpu-core v0.8.1 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling wgpu-types v0.8.0 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.4 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling ash v0.32.1 [INFO] [stderr] Compiling wayland-sys v0.28.5 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling gpu-alloc v0.4.7 [INFO] [stderr] Compiling gpu-descriptor v0.1.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling wayland-scanner v0.28.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.1 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling spirv_headers v1.5.0 [INFO] [stderr] Compiling approx v0.4.0 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling nix v0.20.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling crossbeam v0.8.0 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling mio-misc v1.0.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling xcursor v0.3.3 [INFO] [stderr] Compiling wayland-client v0.28.5 [INFO] [stderr] Compiling wayland-protocols v0.28.5 [INFO] [stderr] Compiling wayland-commons v0.28.5 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling bytemuck_derive v1.0.1 [INFO] [stderr] Compiling wayland-cursor v0.28.5 [INFO] [stderr] Compiling bytemuck v1.5.1 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling naga v0.4.2 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling gfx-hal v0.8.0 [INFO] [stderr] Compiling gfx-backend-empty v0.8.0 [INFO] [stderr] Compiling gfx-backend-gl v0.8.1 [INFO] [stderr] Compiling gfx-backend-vulkan v0.8.0 [INFO] [stderr] Compiling wgpu v0.8.1 [INFO] [stderr] Compiling rts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `renderer::Renderer` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use renderer::Renderer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | window_id, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance_buffer` [INFO] [stdout] --> src/renderer.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let instance_buffer = device.create_buffer_init( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `renderer::Instance` in public interface (error E0446) [INFO] [stdout] --> src/renderer.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn add_instance(&mut self, model: u16, instance: Instance) -> InstanceHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blend` [INFO] [stdout] --> src/main.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn blend(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Mesh` [INFO] [stdout] --> src/model.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Mesh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/model.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn load( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERTICES` [INFO] [stdout] --> src/model.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / const VERTICES: &[MeshVertex] = &[ [INFO] [stdout] 44 | | // top (0, 0, 1) [INFO] [stdout] 45 | | MeshVertex { position: [-1., -1., 1.], normal: [0., 0., 1.] }, [INFO] [stdout] 46 | | MeshVertex { position: [1., -1., 1.], normal: [0., 0., 1.] }, [INFO] [stdout] ... | [INFO] [stdout] 73 | | MeshVertex { position: [1., -1., -1.], normal: [0., -1., 0.] }, [INFO] [stdout] 74 | | ]; [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INDICES` [INFO] [stdout] --> src/model.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | / const INDICES: &[u16] = &[ [INFO] [stdout] 77 | | 0, 1, 2, 2, 3, 0, // top [INFO] [stdout] 78 | | 4, 5, 6, 6, 7, 4, // bottom [INFO] [stdout] 79 | | 8, 9, 10, 10, 11, 8, // right [INFO] [stdout] ... | [INFO] [stdout] 82 | | 20, 21, 22, 22, 23, 20, // back [INFO] [stdout] 83 | | ]; [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Texture` [INFO] [stdout] --> src/texture.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Texture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DEPTH_FORMAT` [INFO] [stdout] --> src/texture.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float; // 1. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_depth_texture` [INFO] [stdout] --> src/texture.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn create_depth_texture(device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, label: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `model` [INFO] [stdout] --> src/renderer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | model: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `InstanceHandle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/renderer.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/renderer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | index: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `InstanceHandle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/renderer.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Renderer` [INFO] [stdout] --> src/renderer.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Renderer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn new(window: &winit::window::Window) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_model` [INFO] [stdout] --> src/renderer.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn add_model(&mut self, model: Model) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_instance` [INFO] [stdout] --> src/renderer.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn add_instance(&mut self, model: u16, instance: Instance) -> InstanceHandle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_instance` [INFO] [stdout] --> src/renderer.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn remove_instance(&mut self, instance: InstanceHandle) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_buffer_init` [INFO] [stdout] --> src/renderer.rs:234:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn create_buffer_init(device: &mut wgpu::Device, label: &str, contents: &[impl bytemuck::Pod], usage: wgpu::BufferUsage) -> wgpu::Buffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ModelBuffers` [INFO] [stdout] --> src/renderer.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | struct ModelBuffers { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Model` [INFO] [stdout] --> src/renderer.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 254 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DenseMap` [INFO] [stdout] --> src/renderer.rs:275:8 [INFO] [stdout] | [INFO] [stdout] 275 | struct DenseMap { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:285:8 [INFO] [stdout] | [INFO] [stdout] 285 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `values` [INFO] [stdout] --> src/renderer.rs:293:8 [INFO] [stdout] | [INFO] [stdout] 293 | fn values(&self) -> &[T] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/renderer.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 297 | fn insert(&mut self, value: T) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/renderer.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | fn remove(&mut self, key: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 24s [INFO] running `Command { std: "docker" "inspect" "3c352886135a1c2c68365774100a56fe9a38ee1dd33087525bd4a9c088973077", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c352886135a1c2c68365774100a56fe9a38ee1dd33087525bd4a9c088973077", kill_on_drop: false }` [INFO] [stdout] 3c352886135a1c2c68365774100a56fe9a38ee1dd33087525bd4a9c088973077 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-102/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-102/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 831d93b2eac469851cae033cdb07eae2eb1b48c46403a2e870b8dc2c3a2abf38 [INFO] running `Command { std: "docker" "start" "-a" "831d93b2eac469851cae033cdb07eae2eb1b48c46403a2e870b8dc2c3a2abf38", kill_on_drop: false }` [INFO] [stderr] Compiling rts v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `renderer::Renderer` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use renderer::Renderer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | window_id, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `window_id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance_buffer` [INFO] [stdout] --> src/renderer.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let instance_buffer = device.create_buffer_init( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `renderer::Instance` in public interface (error E0446) [INFO] [stdout] --> src/renderer.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn add_instance(&mut self, model: u16, instance: Instance) -> InstanceHandle { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blend` [INFO] [stdout] --> src/main.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn blend(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Mesh` [INFO] [stdout] --> src/model.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Mesh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/model.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn load( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VERTICES` [INFO] [stdout] --> src/model.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / const VERTICES: &[MeshVertex] = &[ [INFO] [stdout] 44 | | // top (0, 0, 1) [INFO] [stdout] 45 | | MeshVertex { position: [-1., -1., 1.], normal: [0., 0., 1.] }, [INFO] [stdout] 46 | | MeshVertex { position: [1., -1., 1.], normal: [0., 0., 1.] }, [INFO] [stdout] ... | [INFO] [stdout] 73 | | MeshVertex { position: [1., -1., -1.], normal: [0., -1., 0.] }, [INFO] [stdout] 74 | | ]; [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INDICES` [INFO] [stdout] --> src/model.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | / const INDICES: &[u16] = &[ [INFO] [stdout] 77 | | 0, 1, 2, 2, 3, 0, // top [INFO] [stdout] 78 | | 4, 5, 6, 6, 7, 4, // bottom [INFO] [stdout] 79 | | 8, 9, 10, 10, 11, 8, // right [INFO] [stdout] ... | [INFO] [stdout] 82 | | 20, 21, 22, 22, 23, 20, // back [INFO] [stdout] 83 | | ]; [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Texture` [INFO] [stdout] --> src/texture.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Texture { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `DEPTH_FORMAT` [INFO] [stdout] --> src/texture.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float; // 1. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_depth_texture` [INFO] [stdout] --> src/texture.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn create_depth_texture(device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, label: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `model` [INFO] [stdout] --> src/renderer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | model: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `InstanceHandle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/renderer.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/renderer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | index: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `InstanceHandle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/renderer.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Renderer` [INFO] [stdout] --> src/renderer.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Renderer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn new(window: &winit::window::Window) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_model` [INFO] [stdout] --> src/renderer.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn add_model(&mut self, model: Model) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_instance` [INFO] [stdout] --> src/renderer.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn add_instance(&mut self, model: u16, instance: Instance) -> InstanceHandle { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_instance` [INFO] [stdout] --> src/renderer.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn remove_instance(&mut self, instance: InstanceHandle) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_buffer_init` [INFO] [stdout] --> src/renderer.rs:234:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn create_buffer_init(device: &mut wgpu::Device, label: &str, contents: &[impl bytemuck::Pod], usage: wgpu::BufferUsage) -> wgpu::Buffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ModelBuffers` [INFO] [stdout] --> src/renderer.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | struct ModelBuffers { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Model` [INFO] [stdout] --> src/renderer.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 254 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DenseMap` [INFO] [stdout] --> src/renderer.rs:275:8 [INFO] [stdout] | [INFO] [stdout] 275 | struct DenseMap { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/renderer.rs:285:8 [INFO] [stdout] | [INFO] [stdout] 285 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `values` [INFO] [stdout] --> src/renderer.rs:293:8 [INFO] [stdout] | [INFO] [stdout] 293 | fn values(&self) -> &[T] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/renderer.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 297 | fn insert(&mut self, value: T) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/renderer.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | fn remove(&mut self, key: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.69s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/rts-fe263aed0c58a5cf) [INFO] running `Command { std: "docker" "inspect" "831d93b2eac469851cae033cdb07eae2eb1b48c46403a2e870b8dc2c3a2abf38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "831d93b2eac469851cae033cdb07eae2eb1b48c46403a2e870b8dc2c3a2abf38", kill_on_drop: false }` [INFO] [stdout] 831d93b2eac469851cae033cdb07eae2eb1b48c46403a2e870b8dc2c3a2abf38