[INFO] cloning repository https://github.com/parkerpierpont/wgsl-preprocess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/parkerpierpont/wgsl-preprocess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparkerpierpont%2Fwgsl-preprocess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparkerpierpont%2Fwgsl-preprocess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d9b2a248bc8a458fef3fcf503a4c50f8d2051d6 [INFO] testing parkerpierpont/wgsl-preprocess against try#5a3d3b91048a0adf280e7a4e589c1dda6443f172 for pr-115235 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparkerpierpont%2Fwgsl-preprocess" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/parkerpierpont/wgsl-preprocess on toolchain 5a3d3b91048a0adf280e7a4e589c1dda6443f172 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5a3d3b91048a0adf280e7a4e589c1dda6443f172" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/parkerpierpont/wgsl-preprocess [INFO] finished tweaking git repo https://github.com/parkerpierpont/wgsl-preprocess [INFO] tweaked toml for git repo https://github.com/parkerpierpont/wgsl-preprocess written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/parkerpierpont/wgsl-preprocess 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" "+5a3d3b91048a0adf280e7a4e589c1dda6443f172" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+5a3d3b91048a0adf280e7a4e589c1dda6443f172" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25281a2e28e8987703bd9fff6a991bd7552bcba6159da4b3c21f7a1fecb5eb1d [INFO] running `Command { std: "docker" "start" "-a" "25281a2e28e8987703bd9fff6a991bd7552bcba6159da4b3c21f7a1fecb5eb1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25281a2e28e8987703bd9fff6a991bd7552bcba6159da4b3c21f7a1fecb5eb1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25281a2e28e8987703bd9fff6a991bd7552bcba6159da4b3c21f7a1fecb5eb1d", kill_on_drop: false }` [INFO] [stdout] 25281a2e28e8987703bd9fff6a991bd7552bcba6159da4b3c21f7a1fecb5eb1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+5a3d3b91048a0adf280e7a4e589c1dda6443f172" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 414299d0a75f25586cc087260fb63274afb849c3a99bb4890728cde23a9c5aee [INFO] running `Command { std: "docker" "start" "-a" "414299d0a75f25586cc087260fb63274afb849c3a99bb4890728cde23a9c5aee", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.116 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling ash v0.35.1+1.2.203 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Compiling raw-window-handle v0.4.2 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling wgpu-core v0.12.0 (https://github.com/gfx-rs/wgpu?rev=3e0305d27d790034fc54ef871f733399fb7cd374#3e0305d2) [INFO] [stderr] Compiling gpu-descriptor v0.2.2 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling gpu-alloc v0.5.3 [INFO] [stderr] Compiling x11-dl v2.19.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.3 [INFO] [stderr] Compiling wgpu-types v0.12.0 (https://github.com/gfx-rs/wgpu?rev=3e0305d27d790034fc54ef871f733399fb7cd374#3e0305d2) [INFO] [stderr] Compiling profiling v1.0.5 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling inplace_it v0.3.3 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling wayland-commons v0.29.4 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling calloop v0.9.3 [INFO] [stderr] Compiling memmap2 v0.3.1 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling wayland-cursor v0.29.4 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling pp-rs v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling tracing-attributes v0.1.19 [INFO] [stderr] Compiling bytemuck_derive v1.0.1 [INFO] [stderr] Compiling pollster v0.2.5 [INFO] [stderr] Compiling bytemuck v1.7.3 [INFO] [stderr] Compiling glam v0.20.2 [INFO] [stderr] Compiling tracing v0.1.30 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling naga v0.8.0 (https://github.com/gfx-rs/naga?rev=0ce98d6#0ce98d64) [INFO] [stderr] Compiling naga v0.8.5 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling wgpu-hal v0.12.0 (https://github.com/gfx-rs/wgpu?rev=3e0305d27d790034fc54ef871f733399fb7cd374#3e0305d2) [INFO] [stderr] Compiling wgpu v0.12.0 (https://github.com/gfx-rs/wgpu?rev=3e0305d27d790034fc54ef871f733399fb7cd374#3e0305d2) [INFO] [stderr] Compiling runtime v0.1.0 (/opt/rustwide/workdir/crates/runtime) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | / /// How the `SurfaceTexture`s will be used. (This specifies [INFO] [stdout] 40 | | /// that it will be used on a screen). [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] 41 | usage: wgpu::TextureUsages::RENDER_ATTACHMENT, [INFO] [stdout] | --------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | / /// How the surface textures will be stored on the GPU. [INFO] [stdout] 43 | | /// Different displays use different formats. We use [INFO] [stdout] 44 | | /// surface.get_preferred_format(&adapter) to figure [INFO] [stdout] 45 | | /// our the best format to use depending on the display [INFO] [stdout] 46 | | /// used. [INFO] [stdout] | |_________________________^ [INFO] [stdout] 47 | format: surface.get_preferred_format(&adapter).unwrap(), [INFO] [stdout] | ------------------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | / /// The width and height in pixels of the SurfaceTexture. [INFO] [stdout] 49 | | /// This should usually be the width and height of the window. [INFO] [stdout] 50 | | /// [INFO] [stdout] 51 | | /// If this is set to 0, the app will crash. [INFO] [stdout] | |____________________________________________________________^ [INFO] [stdout] 52 | width: inner_size.width, [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | / /// This tells wgpu how to sync the surface with the display. This [INFO] [stdout] 55 | | /// will cap the display rate at the display's framerate [INFO] [stdout] 56 | | /// (essentially vsync). [INFO] [stdout] 57 | | /// [INFO] [stdout] 58 | | /// It's by far the best mode to use on Mobile. There are other [INFO] [stdout] 59 | | /// options you can use as well. [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] 60 | present_mode: wgpu::PresentMode::Fifo, [INFO] [stdout] | ------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path::PathBuf`, `str::FromStr` [INFO] [stdout] --> crates/runtime/src/shader.rs:8:66 [INFO] [stdout] | [INFO] [stdout] 8 | borrow::Cow, collections::HashSet, marker::Copy, ops::Deref, path::PathBuf, str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GlslParse` is never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum ShaderReflectError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | GlslParse(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderReflectError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source`, `import_path`, and `imports` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Shader { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 30 | source: Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | import_path: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | imports: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shader` 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: multiple associated items are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Shader { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 36 | pub fn from_wgsl(source: impl Into>) -> Shader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn from_glsl(source: impl Into>, stage: naga::ShaderStage) -> Shader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_spirv(source: impl Into>) -> Shader { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_import_path>(&mut self, import_path: P) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn with_import_path>(mut self, import_path: P) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn import_path(&self) -> Option<&ShaderImport> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn imports(&self) -> impl ExactSizeIterator { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub enum Source { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 83 | Wgsl(Cow<'static, str>), [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stdout] | ^^^^ [INFO] [stdout] 85 | SpirV(Cow<'static, [u8]>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Source` 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: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum ProcessedShader { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 94 | Wgsl(Cow<'static, str>), [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | SpirV(Cow<'static, [u8]>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessedShader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_wgsl_source`, `get_glsl_source`, `reflect`, and `get_module_descriptor` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 99 | impl ProcessedShader { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 100 | pub fn get_wgsl_source(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_glsl_source(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn reflect(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn get_module_descriptor( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShaderReflection` is never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct ShaderReflection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_spirv` and `get_wgsl` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl ShaderReflection { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 189 | pub fn get_spirv(&self) -> Result, naga::back::spv::Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn get_wgsl(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TooManyEndIfs`, `NotEnoughEndIfs`, `ShaderFormatDoesNotSupportShaderDefs`, `ShaderFormatDoesNotSupportImports`, `UnresolvedImport`, and `MismatchedImportFormat` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 207 | pub enum ProcessShaderError { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 208 | #[error("Too many '# endif' lines. Each endif should be preceded by an if statement.")] [INFO] [stdout] 209 | TooManyEndIfs, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | NotEnoughEndIfs, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 214 | #[error("This Shader's format does not support processing shader defs.")] [INFO] [stdout] 215 | ShaderFormatDoesNotSupportShaderDefs, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 216 | #[error("This Shader's formatdoes not support imports.")] [INFO] [stdout] 217 | ShaderFormatDoesNotSupportImports, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | #[error("Unresolved import: {0:?}.")] [INFO] [stdout] 219 | UnresolvedImport(ShaderImport), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 220 | #[error("The shader import {0:?} does not match the source file type. Support for this might be added in the future.")] [INFO] [stdout] 221 | MismatchedImportFormat(ShaderImport), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `import_asset_path_regex` and `import_custom_path_regex` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct ShaderImportProcessor { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 225 | import_asset_path_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 226 | import_custom_path_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AssetPath` and `Custom` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 230 | pub enum ShaderImport { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 231 | AssetPath(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 232 | Custom(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderImport` 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: methods `get_imports` and `get_imports_from_str` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 244 | impl ShaderImportProcessor { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 245 | pub fn get_imports(&self, shader: &Shader) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn get_imports_from_str(&self, shader: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SHADER_IMPORT_PROCESSOR` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 269 | pub static SHADER_IMPORT_PROCESSOR: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SHADER_CURRENT_ID` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | static SHADER_CURRENT_ID: AtomicU32 = AtomicU32::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl ShaderHandle { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 278 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ifdef_regex`, `ifndef_regex`, `else_regex`, and `endif_regex` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct ShaderProcessor { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 285 | ifdef_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 286 | ifndef_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 287 | else_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 288 | endif_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `process` and `apply_import` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl ShaderProcessor { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 303 | pub fn process( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 392 | fn apply_import( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling playground v0.1.0 (/opt/rustwide/workdir/crates/playground) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 40.95s [INFO] running `Command { std: "docker" "inspect" "414299d0a75f25586cc087260fb63274afb849c3a99bb4890728cde23a9c5aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "414299d0a75f25586cc087260fb63274afb849c3a99bb4890728cde23a9c5aee", kill_on_drop: false }` [INFO] [stdout] 414299d0a75f25586cc087260fb63274afb849c3a99bb4890728cde23a9c5aee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+5a3d3b91048a0adf280e7a4e589c1dda6443f172" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fdc60804d07d26908a85c71a85bbf0e21dc06f2f53d8d2a3e31b62b25dfef0e [INFO] running `Command { std: "docker" "start" "-a" "9fdc60804d07d26908a85c71a85bbf0e21dc06f2f53d8d2a3e31b62b25dfef0e", kill_on_drop: false }` [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | / /// How the `SurfaceTexture`s will be used. (This specifies [INFO] [stdout] 40 | | /// that it will be used on a screen). [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] 41 | usage: wgpu::TextureUsages::RENDER_ATTACHMENT, [INFO] [stdout] | --------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | / /// How the surface textures will be stored on the GPU. [INFO] [stdout] 43 | | /// Different displays use different formats. We use [INFO] [stdout] 44 | | /// surface.get_preferred_format(&adapter) to figure [INFO] [stdout] 45 | | /// our the best format to use depending on the display [INFO] [stdout] 46 | | /// used. [INFO] [stdout] | |_________________________^ [INFO] [stdout] 47 | format: surface.get_preferred_format(&adapter).unwrap(), [INFO] [stdout] | ------------------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | / /// The width and height in pixels of the SurfaceTexture. [INFO] [stdout] 49 | | /// This should usually be the width and height of the window. [INFO] [stdout] 50 | | /// [INFO] [stdout] 51 | | /// If this is set to 0, the app will crash. [INFO] [stdout] | |____________________________________________________________^ [INFO] [stdout] 52 | width: inner_size.width, [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | / /// This tells wgpu how to sync the surface with the display. This [INFO] [stdout] 55 | | /// will cap the display rate at the display's framerate [INFO] [stdout] 56 | | /// (essentially vsync). [INFO] [stdout] 57 | | /// [INFO] [stdout] 58 | | /// It's by far the best mode to use on Mobile. There are other [INFO] [stdout] 59 | | /// options you can use as well. [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] 60 | present_mode: wgpu::PresentMode::Fifo, [INFO] [stdout] | ------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path::PathBuf`, `str::FromStr` [INFO] [stdout] --> crates/runtime/src/shader.rs:8:66 [INFO] [stdout] | [INFO] [stdout] 8 | borrow::Cow, collections::HashSet, marker::Copy, ops::Deref, path::PathBuf, str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GlslParse` is never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum ShaderReflectError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | GlslParse(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderReflectError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source`, `import_path`, and `imports` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Shader { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 30 | source: Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | import_path: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | imports: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shader` 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: multiple associated items are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Shader { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 36 | pub fn from_wgsl(source: impl Into>) -> Shader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn from_glsl(source: impl Into>, stage: naga::ShaderStage) -> Shader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_spirv(source: impl Into>) -> Shader { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_import_path>(&mut self, import_path: P) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn with_import_path>(mut self, import_path: P) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn import_path(&self) -> Option<&ShaderImport> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn imports(&self) -> impl ExactSizeIterator { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub enum Source { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 83 | Wgsl(Cow<'static, str>), [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stdout] | ^^^^ [INFO] [stdout] 85 | SpirV(Cow<'static, [u8]>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Source` 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: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum ProcessedShader { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 94 | Wgsl(Cow<'static, str>), [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | SpirV(Cow<'static, [u8]>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessedShader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_wgsl_source`, `get_glsl_source`, `reflect`, and `get_module_descriptor` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 99 | impl ProcessedShader { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 100 | pub fn get_wgsl_source(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_glsl_source(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn reflect(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn get_module_descriptor( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShaderReflection` is never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct ShaderReflection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_spirv` and `get_wgsl` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl ShaderReflection { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 189 | pub fn get_spirv(&self) -> Result, naga::back::spv::Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn get_wgsl(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling runtime v0.1.0 (/opt/rustwide/workdir/crates/runtime) [INFO] [stdout] warning: variants `TooManyEndIfs`, `NotEnoughEndIfs`, `ShaderFormatDoesNotSupportShaderDefs`, `ShaderFormatDoesNotSupportImports`, `UnresolvedImport`, and `MismatchedImportFormat` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 207 | pub enum ProcessShaderError { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 208 | #[error("Too many '# endif' lines. Each endif should be preceded by an if statement.")] [INFO] [stdout] 209 | TooManyEndIfs, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | NotEnoughEndIfs, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 214 | #[error("This Shader's format does not support processing shader defs.")] [INFO] [stdout] 215 | ShaderFormatDoesNotSupportShaderDefs, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 216 | #[error("This Shader's formatdoes not support imports.")] [INFO] [stdout] 217 | ShaderFormatDoesNotSupportImports, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | #[error("Unresolved import: {0:?}.")] [INFO] [stdout] 219 | UnresolvedImport(ShaderImport), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 220 | #[error("The shader import {0:?} does not match the source file type. Support for this might be added in the future.")] [INFO] [stdout] 221 | MismatchedImportFormat(ShaderImport), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling playground v0.1.0 (/opt/rustwide/workdir/crates/playground) [INFO] [stdout] warning: fields `import_asset_path_regex` and `import_custom_path_regex` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct ShaderImportProcessor { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 225 | import_asset_path_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 226 | import_custom_path_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AssetPath` and `Custom` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 230 | pub enum ShaderImport { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 231 | AssetPath(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 232 | Custom(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderImport` 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: methods `get_imports` and `get_imports_from_str` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 244 | impl ShaderImportProcessor { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 245 | pub fn get_imports(&self, shader: &Shader) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn get_imports_from_str(&self, shader: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SHADER_IMPORT_PROCESSOR` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 269 | pub static SHADER_IMPORT_PROCESSOR: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SHADER_CURRENT_ID` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | static SHADER_CURRENT_ID: AtomicU32 = AtomicU32::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl ShaderHandle { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 278 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ifdef_regex`, `ifndef_regex`, `else_regex`, and `endif_regex` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct ShaderProcessor { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 285 | ifdef_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 286 | ifndef_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 287 | else_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 288 | endif_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `process` and `apply_import` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl ShaderProcessor { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 303 | pub fn process( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 392 | fn apply_import( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | / /// How the `SurfaceTexture`s will be used. (This specifies [INFO] [stdout] 40 | | /// that it will be used on a screen). [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] 41 | usage: wgpu::TextureUsages::RENDER_ATTACHMENT, [INFO] [stdout] | --------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | / /// How the surface textures will be stored on the GPU. [INFO] [stdout] 43 | | /// Different displays use different formats. We use [INFO] [stdout] 44 | | /// surface.get_preferred_format(&adapter) to figure [INFO] [stdout] 45 | | /// our the best format to use depending on the display [INFO] [stdout] 46 | | /// used. [INFO] [stdout] | |_________________________^ [INFO] [stdout] 47 | format: surface.get_preferred_format(&adapter).unwrap(), [INFO] [stdout] | ------------------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | / /// The width and height in pixels of the SurfaceTexture. [INFO] [stdout] 49 | | /// This should usually be the width and height of the window. [INFO] [stdout] 50 | | /// [INFO] [stdout] 51 | | /// If this is set to 0, the app will crash. [INFO] [stdout] | |____________________________________________________________^ [INFO] [stdout] 52 | width: inner_size.width, [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> crates/runtime/src/setup.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | / /// This tells wgpu how to sync the surface with the display. This [INFO] [stdout] 55 | | /// will cap the display rate at the display's framerate [INFO] [stdout] 56 | | /// (essentially vsync). [INFO] [stdout] 57 | | /// [INFO] [stdout] 58 | | /// It's by far the best mode to use on Mobile. There are other [INFO] [stdout] 59 | | /// options you can use as well. [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] 60 | present_mode: wgpu::PresentMode::Fifo, [INFO] [stdout] | ------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path::PathBuf`, `str::FromStr` [INFO] [stdout] --> crates/runtime/src/shader.rs:8:66 [INFO] [stdout] | [INFO] [stdout] 8 | borrow::Cow, collections::HashSet, marker::Copy, ops::Deref, path::PathBuf, str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GlslParse` is never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum ShaderReflectError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | GlslParse(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderReflectError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source`, `import_path`, and `imports` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Shader { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 30 | source: Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | import_path: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | imports: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shader` 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: multiple associated items are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Shader { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 36 | pub fn from_wgsl(source: impl Into>) -> Shader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn from_glsl(source: impl Into>, stage: naga::ShaderStage) -> Shader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_spirv(source: impl Into>) -> Shader { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_import_path>(&mut self, import_path: P) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn with_import_path>(mut self, import_path: P) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn import_path(&self) -> Option<&ShaderImport> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn imports(&self) -> impl ExactSizeIterator { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub enum Source { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 83 | Wgsl(Cow<'static, str>), [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stdout] | ^^^^ [INFO] [stdout] 85 | SpirV(Cow<'static, [u8]>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Source` 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: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 93 | pub enum ProcessedShader { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 94 | Wgsl(Cow<'static, str>), [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | SpirV(Cow<'static, [u8]>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessedShader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_wgsl_source`, `get_glsl_source`, `reflect`, and `get_module_descriptor` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 99 | impl ProcessedShader { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 100 | pub fn get_wgsl_source(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_glsl_source(&self) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn reflect(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn get_module_descriptor( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShaderReflection` is never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct ShaderReflection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_spirv` and `get_wgsl` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl ShaderReflection { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 189 | pub fn get_spirv(&self) -> Result, naga::back::spv::Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn get_wgsl(&self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TooManyEndIfs`, `NotEnoughEndIfs`, `ShaderFormatDoesNotSupportShaderDefs`, `ShaderFormatDoesNotSupportImports`, `UnresolvedImport`, and `MismatchedImportFormat` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 207 | pub enum ProcessShaderError { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 208 | #[error("Too many '# endif' lines. Each endif should be preceded by an if statement.")] [INFO] [stdout] 209 | TooManyEndIfs, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | NotEnoughEndIfs, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 214 | #[error("This Shader's format does not support processing shader defs.")] [INFO] [stdout] 215 | ShaderFormatDoesNotSupportShaderDefs, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 216 | #[error("This Shader's formatdoes not support imports.")] [INFO] [stdout] 217 | ShaderFormatDoesNotSupportImports, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | #[error("Unresolved import: {0:?}.")] [INFO] [stdout] 219 | UnresolvedImport(ShaderImport), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 220 | #[error("The shader import {0:?} does not match the source file type. Support for this might be added in the future.")] [INFO] [stdout] 221 | MismatchedImportFormat(ShaderImport), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `import_asset_path_regex` and `import_custom_path_regex` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct ShaderImportProcessor { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 225 | import_asset_path_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 226 | import_custom_path_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AssetPath` and `Custom` are never constructed [INFO] [stdout] --> crates/runtime/src/shader.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 230 | pub enum ShaderImport { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 231 | AssetPath(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 232 | Custom(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShaderImport` 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: methods `get_imports` and `get_imports_from_str` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 244 | impl ShaderImportProcessor { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 245 | pub fn get_imports(&self, shader: &Shader) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn get_imports_from_str(&self, shader: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SHADER_IMPORT_PROCESSOR` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 269 | pub static SHADER_IMPORT_PROCESSOR: Lazy = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SHADER_CURRENT_ID` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | static SHADER_CURRENT_ID: AtomicU32 = AtomicU32::new(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> crates/runtime/src/shader.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl ShaderHandle { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 278 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ifdef_regex`, `ifndef_regex`, `else_regex`, and `endif_regex` are never read [INFO] [stdout] --> crates/runtime/src/shader.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct ShaderProcessor { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 285 | ifdef_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 286 | ifndef_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 287 | else_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 288 | endif_regex: Regex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `process` and `apply_import` are never used [INFO] [stdout] --> crates/runtime/src/shader.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl ShaderProcessor { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 303 | pub fn process( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 392 | fn apply_import( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.63s [INFO] running `Command { std: "docker" "inspect" "9fdc60804d07d26908a85c71a85bbf0e21dc06f2f53d8d2a3e31b62b25dfef0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fdc60804d07d26908a85c71a85bbf0e21dc06f2f53d8d2a3e31b62b25dfef0e", kill_on_drop: false }` [INFO] [stdout] 9fdc60804d07d26908a85c71a85bbf0e21dc06f2f53d8d2a3e31b62b25dfef0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+5a3d3b91048a0adf280e7a4e589c1dda6443f172" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fcc45d863de8a0ef4f9afb0595272616a350c756db3d57e9874147903d64996b [INFO] running `Command { std: "docker" "start" "-a" "fcc45d863de8a0ef4f9afb0595272616a350c756db3d57e9874147903d64996b", kill_on_drop: false }` [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> crates/runtime/src/setup.rs:39:17 [INFO] [stderr] | [INFO] [stderr] 39 | / /// How the `SurfaceTexture`s will be used. (This specifies [INFO] [stderr] 40 | | /// that it will be used on a screen). [INFO] [stderr] | |______________________________________________________^ [INFO] [stderr] 41 | usage: wgpu::TextureUsages::RENDER_ATTACHMENT, [INFO] [stderr] | --------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> crates/runtime/src/setup.rs:42:17 [INFO] [stderr] | [INFO] [stderr] 42 | / /// How the surface textures will be stored on the GPU. [INFO] [stderr] 43 | | /// Different displays use different formats. We use [INFO] [stderr] 44 | | /// surface.get_preferred_format(&adapter) to figure [INFO] [stderr] 45 | | /// our the best format to use depending on the display [INFO] [stderr] 46 | | /// used. [INFO] [stderr] | |_________________________^ [INFO] [stderr] 47 | format: surface.get_preferred_format(&adapter).unwrap(), [INFO] [stderr] | ------------------------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> crates/runtime/src/setup.rs:48:17 [INFO] [stderr] | [INFO] [stderr] 48 | / /// The width and height in pixels of the SurfaceTexture. [INFO] [stderr] 49 | | /// This should usually be the width and height of the window. [INFO] [stderr] 50 | | /// [INFO] [stderr] 51 | | /// If this is set to 0, the app will crash. [INFO] [stderr] | |____________________________________________________________^ [INFO] [stderr] 52 | width: inner_size.width, [INFO] [stderr] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> crates/runtime/src/setup.rs:54:17 [INFO] [stderr] | [INFO] [stderr] 54 | / /// This tells wgpu how to sync the surface with the display. This [INFO] [stderr] 55 | | /// will cap the display rate at the display's framerate [INFO] [stderr] 56 | | /// (essentially vsync). [INFO] [stderr] 57 | | /// [INFO] [stderr] 58 | | /// It's by far the best mode to use on Mobile. There are other [INFO] [stderr] 59 | | /// options you can use as well. [INFO] [stderr] | |________________________________________________^ [INFO] [stderr] 60 | present_mode: wgpu::PresentMode::Fifo, [INFO] [stderr] | ------------------------------------- rustdoc does not generate documentation for expression fields [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] [INFO] [stderr] warning: unused imports: `path::PathBuf`, `str::FromStr` [INFO] [stderr] --> crates/runtime/src/shader.rs:8:66 [INFO] [stderr] | [INFO] [stderr] 8 | borrow::Cow, collections::HashSet, marker::Copy, ops::Deref, path::PathBuf, str::FromStr, [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `GlslParse` is never constructed [INFO] [stderr] --> crates/runtime/src/shader.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 15 | pub enum ShaderReflectError { [INFO] [stderr] | ------------------ variant in this enum [INFO] [stderr] ... [INFO] [stderr] 19 | GlslParse(Vec), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ShaderReflectError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `source`, `import_path`, and `imports` are never read [INFO] [stderr] --> crates/runtime/src/shader.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct Shader { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 30 | source: Source, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 31 | import_path: Option, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 32 | imports: Vec, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Shader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> crates/runtime/src/shader.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 35 | impl Shader { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] 36 | pub fn from_wgsl(source: impl Into>) -> Shader { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn from_glsl(source: impl Into>, stage: naga::ShaderStage) -> Shader { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 54 | pub fn from_spirv(source: impl Into>) -> Shader { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | pub fn set_import_path>(&mut self, import_path: P) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 66 | pub fn with_import_path>(mut self, import_path: P) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 72 | pub fn import_path(&self) -> Option<&ShaderImport> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 76 | pub fn imports(&self) -> impl ExactSizeIterator { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stderr] --> crates/runtime/src/shader.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 82 | pub enum Source { [INFO] [stderr] | ------ variants in this enum [INFO] [stderr] 83 | Wgsl(Cow<'static, str>), [INFO] [stderr] | ^^^^ [INFO] [stderr] 84 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stderr] | ^^^^ [INFO] [stderr] 85 | SpirV(Cow<'static, [u8]>), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Source` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Wgsl`, `Glsl`, and `SpirV` are never constructed [INFO] [stderr] --> crates/runtime/src/shader.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 93 | pub enum ProcessedShader { [INFO] [stderr] | --------------- variants in this enum [INFO] [stderr] 94 | Wgsl(Cow<'static, str>), [INFO] [stderr] | ^^^^ [INFO] [stderr] 95 | Glsl(Cow<'static, str>, naga::ShaderStage), [INFO] [stderr] | ^^^^ [INFO] [stderr] 96 | SpirV(Cow<'static, [u8]>), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ProcessedShader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_wgsl_source`, `get_glsl_source`, `reflect`, and `get_module_descriptor` are never used [INFO] [stderr] --> crates/runtime/src/shader.rs:100:12 [INFO] [stderr] | [INFO] [stderr] 99 | impl ProcessedShader { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] 100 | pub fn get_wgsl_source(&self) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn get_glsl_source(&self) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 115 | pub fn reflect(&self) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 145 | pub fn get_module_descriptor( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ShaderReflection` is never constructed [INFO] [stderr] --> crates/runtime/src/shader.rs:183:12 [INFO] [stderr] | [INFO] [stderr] 183 | pub struct ShaderReflection { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_spirv` and `get_wgsl` are never used [INFO] [stderr] --> crates/runtime/src/shader.rs:189:12 [INFO] [stderr] | [INFO] [stderr] 188 | impl ShaderReflection { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] 189 | pub fn get_spirv(&self) -> Result, naga::back::spv::Error> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | pub fn get_wgsl(&self) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `TooManyEndIfs`, `NotEnoughEndIfs`, `ShaderFormatDoesNotSupportShaderDefs`, `ShaderFormatDoesNotSupportImports`, `UnresolvedImport`, and `MismatchedImportFormat` are never constructed [INFO] [stderr] --> crates/runtime/src/shader.rs:209:5 [INFO] [stderr] | [INFO] [stderr] 207 | pub enum ProcessShaderError { [INFO] [stderr] | ------------------ variants in this enum [INFO] [stderr] 208 | #[error("Too many '# endif' lines. Each endif should be preceded by an if statement.")] [INFO] [stderr] 209 | TooManyEndIfs, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 213 | NotEnoughEndIfs, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 214 | #[error("This Shader's format does not support processing shader defs.")] [INFO] [stderr] 215 | ShaderFormatDoesNotSupportShaderDefs, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 216 | #[error("This Shader's formatdoes not support imports.")] [INFO] [stderr] 217 | ShaderFormatDoesNotSupportImports, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 218 | #[error("Unresolved import: {0:?}.")] [INFO] [stderr] 219 | UnresolvedImport(ShaderImport), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 220 | #[error("The shader import {0:?} does not match the source file type. Support for this might be added in the future.")] [INFO] [stderr] 221 | MismatchedImportFormat(ShaderImport), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ProcessShaderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `import_asset_path_regex` and `import_custom_path_regex` are never read [INFO] [stderr] --> crates/runtime/src/shader.rs:225:5 [INFO] [stderr] | [INFO] [stderr] 224 | pub struct ShaderImportProcessor { [INFO] [stderr] | --------------------- fields in this struct [INFO] [stderr] 225 | import_asset_path_regex: Regex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 226 | import_custom_path_regex: Regex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `AssetPath` and `Custom` are never constructed [INFO] [stderr] --> crates/runtime/src/shader.rs:231:5 [INFO] [stderr] | [INFO] [stderr] 230 | pub enum ShaderImport { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 231 | AssetPath(String), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 232 | Custom(String), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ShaderImport` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_imports` and `get_imports_from_str` are never used [INFO] [stderr] --> crates/runtime/src/shader.rs:245:12 [INFO] [stderr] | [INFO] [stderr] 244 | impl ShaderImportProcessor { [INFO] [stderr] | -------------------------- methods in this implementation [INFO] [stderr] 245 | pub fn get_imports(&self, shader: &Shader) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 253 | pub fn get_imports_from_str(&self, shader: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `SHADER_IMPORT_PROCESSOR` is never used [INFO] [stderr] --> crates/runtime/src/shader.rs:269:12 [INFO] [stderr] | [INFO] [stderr] 269 | pub static SHADER_IMPORT_PROCESSOR: Lazy = [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `SHADER_CURRENT_ID` is never used [INFO] [stderr] --> crates/runtime/src/shader.rs:272:8 [INFO] [stderr] | [INFO] [stderr] 272 | static SHADER_CURRENT_ID: AtomicU32 = AtomicU32::new(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> crates/runtime/src/shader.rs:278:12 [INFO] [stderr] | [INFO] [stderr] 277 | impl ShaderHandle { [INFO] [stderr] | ----------------- associated function in this implementation [INFO] [stderr] 278 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `ifdef_regex`, `ifndef_regex`, `else_regex`, and `endif_regex` are never read [INFO] [stderr] --> crates/runtime/src/shader.rs:285:5 [INFO] [stderr] | [INFO] [stderr] 284 | pub struct ShaderProcessor { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 285 | ifdef_regex: Regex, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 286 | ifndef_regex: Regex, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 287 | else_regex: Regex, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 288 | endif_regex: Regex, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `process` and `apply_import` are never used [INFO] [stderr] --> crates/runtime/src/shader.rs:303:12 [INFO] [stderr] | [INFO] [stderr] 302 | impl ShaderProcessor { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] 303 | pub fn process( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 392 | fn apply_import( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `runtime` (lib) generated 22 warnings (run `cargo fix --lib -p runtime` to apply 1 suggestion) [INFO] [stderr] warning: `runtime` (lib test) generated 22 warnings (22 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/playground-72f7af59b219e60d) [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] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/runtime-8091c87b4eb5dbb8) [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] [stdout] [INFO] [stderr] Doc-tests runtime [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] [stdout] [INFO] running `Command { std: "docker" "inspect" "fcc45d863de8a0ef4f9afb0595272616a350c756db3d57e9874147903d64996b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcc45d863de8a0ef4f9afb0595272616a350c756db3d57e9874147903d64996b", kill_on_drop: false }` [INFO] [stdout] fcc45d863de8a0ef4f9afb0595272616a350c756db3d57e9874147903d64996b