[INFO] cloning repository https://github.com/luboise/ghoulies_reader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luboise/ghoulies_reader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluboise%2Fghoulies_reader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluboise%2Fghoulies_reader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae241abb03bec36f94f2289820f0f94d1e783c28 [INFO] testing luboise/ghoulies_reader against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluboise%2Fghoulies_reader" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/luboise/ghoulies_reader [INFO] finished tweaking git repo https://github.com/luboise/ghoulies_reader [INFO] tweaked toml for git repo https://github.com/luboise/ghoulies_reader written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/luboise/ghoulies_reader on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/luboise/ghoulies_reader 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bcndecode v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d78de14e1f2a2a04f2643c9957e095b8b5d8d484071158c0d2f0065fefb71fdf [INFO] running `Command { std: "docker" "start" "-a" "d78de14e1f2a2a04f2643c9957e095b8b5d8d484071158c0d2f0065fefb71fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d78de14e1f2a2a04f2643c9957e095b8b5d8d484071158c0d2f0065fefb71fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d78de14e1f2a2a04f2643c9957e095b8b5d8d484071158c0d2f0065fefb71fdf", kill_on_drop: false }` [INFO] [stdout] d78de14e1f2a2a04f2643c9957e095b8b5d8d484071158c0d2f0065fefb71fdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2abc37e6ca183b0e29c79b1222bb85eba6530f06b2cf1027ac4416cc404c1b78 [INFO] running `Command { std: "docker" "start" "-a" "2abc37e6ca183b0e29c79b1222bb85eba6530f06b2cf1027ac4416cc404c1b78", kill_on_drop: false }` [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling bcndecode v0.2.0 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling bnl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/asset/mod.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | fn from(value: std::io::Error) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `Asset::new` [INFO] [stdout] --> src/asset/mod.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | / fn new( [INFO] [stdout] 179 | | name: &str, [INFO] [stdout] 180 | | descriptor: &Self::Descriptor, [INFO] [stdout] 181 | | virtual_res: &VirtualResource, [INFO] [stdout] 182 | | ) -> Result; [INFO] [stdout] | |_______________________________________^ associated function `Asset::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stdout] --> src/asset/model/mod.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / fn new( [INFO] [stdout] 151 | | name: &str, [INFO] [stdout] 152 | | descriptor: &Self::Descriptor, [INFO] [stdout] 153 | | virtual_res: &VirtualResource, [INFO] [stdout] 154 | | ) -> Result { [INFO] [stdout] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stdout] --> src/asset/texture.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | / fn new( [INFO] [stdout] 115 | | name: &str, [INFO] [stdout] 116 | | descriptor: &Self::Descriptor, [INFO] [stdout] 117 | | virtual_res: &VirtualResource, [INFO] [stdout] 118 | | ) -> Result { [INFO] [stdout] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_count` and `flags` are never read [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct BNLHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 84 | file_count: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 85 | flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BNLHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `asset_desc_bytes` is never read [INFO] [stdout] --> src/lib.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct BNLFile { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 98 | asset_desc_bytes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BNLFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_slices` is never used [INFO] [stdout] --> src/lib.rs:559:19 [INFO] [stdout] | [INFO] [stdout] 481 | impl VirtualResource<'_> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 559 | pub(crate) fn from_slices<'a>(slices: &'a [&[u8]]) -> VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `subres_type` and `subres_param` are never read [INFO] [stdout] --> src/asset/model/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) struct RawModelSubresource { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | subres_type: ModelSubresType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 56 | subres_param: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawModelSubresource` 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: fields `subresources_offset`, `subresource_count`, and `raw_subresources` are never read [INFO] [stdout] --> src/asset/model/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct ModelDescriptor { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 61 | subresources_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | subresource_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 63 | raw_subresources: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelDescriptor` 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: fields `header_size`, `flags`, and `unknown_3a` are never read [INFO] [stdout] --> src/asset/texture.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TextureDescriptor { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 19 | format: D3DFormat, [INFO] [stdout] 20 | header_size: u32, // 28 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | flags: u32, // 0x00000001 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | unknown_3a: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextureDescriptor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.18s [INFO] running `Command { std: "docker" "inspect" "2abc37e6ca183b0e29c79b1222bb85eba6530f06b2cf1027ac4416cc404c1b78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2abc37e6ca183b0e29c79b1222bb85eba6530f06b2cf1027ac4416cc404c1b78", kill_on_drop: false }` [INFO] [stdout] 2abc37e6ca183b0e29c79b1222bb85eba6530f06b2cf1027ac4416cc404c1b78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25aa1b4ede7f3e3bdb521c1254d1e9d37d2aa5e447b6b336bf14e790cacae654 [INFO] running `Command { std: "docker" "start" "-a" "25aa1b4ede7f3e3bdb521c1254d1e9d37d2aa5e447b6b336bf14e790cacae654", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/asset/mod.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | fn from(value: std::io::Error) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `Asset::new` [INFO] [stdout] --> src/asset/mod.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | / fn new( [INFO] [stdout] 179 | | name: &str, [INFO] [stdout] 180 | | descriptor: &Self::Descriptor, [INFO] [stdout] 181 | | virtual_res: &VirtualResource, [INFO] [stdout] 182 | | ) -> Result; [INFO] [stdout] | |_______________________________________^ associated function `Asset::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stdout] --> src/asset/model/mod.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / fn new( [INFO] [stdout] 151 | | name: &str, [INFO] [stdout] 152 | | descriptor: &Self::Descriptor, [INFO] [stdout] 153 | | virtual_res: &VirtualResource, [INFO] [stdout] 154 | | ) -> Result { [INFO] [stdout] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stdout] --> src/asset/texture.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | / fn new( [INFO] [stdout] 115 | | name: &str, [INFO] [stdout] 116 | | descriptor: &Self::Descriptor, [INFO] [stdout] 117 | | virtual_res: &VirtualResource, [INFO] [stdout] 118 | | ) -> Result { [INFO] [stdout] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_count` and `flags` are never read [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct BNLHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 84 | file_count: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 85 | flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BNLHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `asset_desc_bytes` is never read [INFO] [stdout] --> src/lib.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct BNLFile { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 98 | asset_desc_bytes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BNLFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_slices` is never used [INFO] [stdout] --> src/lib.rs:559:19 [INFO] [stdout] | [INFO] [stdout] 481 | impl VirtualResource<'_> { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 559 | pub(crate) fn from_slices<'a>(slices: &'a [&[u8]]) -> VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `subres_type` and `subres_param` are never read [INFO] [stdout] --> src/asset/model/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) struct RawModelSubresource { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | subres_type: ModelSubresType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 56 | subres_param: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawModelSubresource` 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: fields `subresources_offset`, `subresource_count`, and `raw_subresources` are never read [INFO] [stdout] --> src/asset/model/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct ModelDescriptor { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 61 | subresources_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | subresource_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 63 | raw_subresources: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelDescriptor` 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: fields `header_size`, `flags`, and `unknown_3a` are never read [INFO] [stdout] --> src/asset/texture.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TextureDescriptor { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 19 | format: D3DFormat, [INFO] [stdout] 20 | header_size: u32, // 28 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | flags: u32, // 0x00000001 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | unknown_3a: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextureDescriptor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bnl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/asset/mod.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | fn from(value: std::io::Error) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `Asset::new` [INFO] [stdout] --> src/asset/mod.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | / fn new( [INFO] [stdout] 179 | | name: &str, [INFO] [stdout] 180 | | descriptor: &Self::Descriptor, [INFO] [stdout] 181 | | virtual_res: &VirtualResource, [INFO] [stdout] 182 | | ) -> Result; [INFO] [stdout] | |_______________________________________^ associated function `Asset::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stdout] --> src/asset/model/mod.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / fn new( [INFO] [stdout] 151 | | name: &str, [INFO] [stdout] 152 | | descriptor: &Self::Descriptor, [INFO] [stdout] 153 | | virtual_res: &VirtualResource, [INFO] [stdout] 154 | | ) -> Result { [INFO] [stdout] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stdout] --> src/asset/texture.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | / fn new( [INFO] [stdout] 115 | | name: &str, [INFO] [stdout] 116 | | descriptor: &Self::Descriptor, [INFO] [stdout] 117 | | virtual_res: &VirtualResource, [INFO] [stdout] 118 | | ) -> Result { [INFO] [stdout] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:465:1 [INFO] [stdout] | [INFO] [stdout] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_count` and `flags` are never read [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct BNLHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 84 | file_count: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 85 | flags: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BNLHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `asset_desc_bytes` is never read [INFO] [stdout] --> src/lib.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct BNLFile { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 98 | asset_desc_bytes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BNLFile` 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 `subres_type` and `subres_param` are never read [INFO] [stdout] --> src/asset/model/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) struct RawModelSubresource { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | subres_type: ModelSubresType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 56 | subres_param: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawModelSubresource` 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: fields `subresources_offset`, `subresource_count`, and `raw_subresources` are never read [INFO] [stdout] --> src/asset/model/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct ModelDescriptor { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 61 | subresources_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | subresource_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 63 | raw_subresources: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelDescriptor` 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: fields `flags` and `unknown_3a` are never read [INFO] [stdout] --> src/asset/texture.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TextureDescriptor { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | flags: u32, // 0x00000001 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | unknown_3a: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TextureDescriptor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.76s [INFO] running `Command { std: "docker" "inspect" "25aa1b4ede7f3e3bdb521c1254d1e9d37d2aa5e447b6b336bf14e790cacae654", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25aa1b4ede7f3e3bdb521c1254d1e9d37d2aa5e447b6b336bf14e790cacae654", kill_on_drop: false }` [INFO] [stdout] 25aa1b4ede7f3e3bdb521c1254d1e9d37d2aa5e447b6b336bf14e790cacae654 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5b785ab3f6d181f7dfb1ddecfd9ebd92498e2113d8f5481b006dffc608467e4c [INFO] running `Command { std: "docker" "start" "-a" "5b785ab3f6d181f7dfb1ddecfd9ebd92498e2113d8f5481b006dffc608467e4c", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/asset/mod.rs:131:13 [INFO] [stderr] | [INFO] [stderr] 131 | fn from(value: std::io::Error) -> Self { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `VirtualResource<'_>` is more private than the item `Asset::new` [INFO] [stderr] --> src/asset/mod.rs:178:5 [INFO] [stderr] | [INFO] [stderr] 178 | / fn new( [INFO] [stderr] 179 | | name: &str, [INFO] [stderr] 180 | | descriptor: &Self::Descriptor, [INFO] [stderr] 181 | | virtual_res: &VirtualResource, [INFO] [stderr] 182 | | ) -> Result; [INFO] [stderr] | |_______________________________________^ associated function `Asset::new` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/lib.rs:465:1 [INFO] [stderr] | [INFO] [stderr] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stderr] --> src/asset/model/mod.rs:150:5 [INFO] [stderr] | [INFO] [stderr] 150 | / fn new( [INFO] [stderr] 151 | | name: &str, [INFO] [stderr] 152 | | descriptor: &Self::Descriptor, [INFO] [stderr] 153 | | virtual_res: &VirtualResource, [INFO] [stderr] 154 | | ) -> Result { [INFO] [stderr] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/lib.rs:465:1 [INFO] [stderr] | [INFO] [stderr] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `VirtualResource<'_>` is more private than the item `::new` [INFO] [stderr] --> src/asset/texture.rs:114:5 [INFO] [stderr] | [INFO] [stderr] 114 | / fn new( [INFO] [stderr] 115 | | name: &str, [INFO] [stderr] 116 | | descriptor: &Self::Descriptor, [INFO] [stderr] 117 | | virtual_res: &VirtualResource, [INFO] [stderr] 118 | | ) -> Result { [INFO] [stderr] | |______________________________________^ associated function `::new` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `VirtualResource<'_>` is only usable at visibility `pub(crate)` [INFO] [stderr] --> src/lib.rs:465:1 [INFO] [stderr] | [INFO] [stderr] 465 | pub(crate) struct VirtualResource<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `file_count` and `flags` are never read [INFO] [stderr] --> src/lib.rs:84:5 [INFO] [stderr] | [INFO] [stderr] 83 | struct BNLHeader { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 84 | file_count: u16, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 85 | flags: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BNLHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `asset_desc_bytes` is never read [INFO] [stderr] --> src/lib.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 95 | pub struct BNLFile { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 98 | asset_desc_bytes: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BNLFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `from_slices` is never used [INFO] [stderr] --> src/lib.rs:559:19 [INFO] [stderr] | [INFO] [stderr] 481 | impl VirtualResource<'_> { [INFO] [stderr] | ------------------------ associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 559 | pub(crate) fn from_slices<'a>(slices: &'a [&[u8]]) -> VirtualResource<'a> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `subres_type` and `subres_param` are never read [INFO] [stderr] --> src/asset/model/mod.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 54 | pub(crate) struct RawModelSubresource { [INFO] [stderr] | ------------------- fields in this struct [INFO] [stderr] 55 | subres_type: ModelSubresType, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 56 | subres_param: u32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RawModelSubresource` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `subresources_offset`, `subresource_count`, and `raw_subresources` are never read [INFO] [stderr] --> src/asset/model/mod.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 60 | pub struct ModelDescriptor { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 61 | subresources_offset: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 62 | subresource_count: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 63 | raw_subresources: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ModelDescriptor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `header_size`, `flags`, and `unknown_3a` are never read [INFO] [stderr] --> src/asset/texture.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct TextureDescriptor { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] 19 | format: D3DFormat, [INFO] [stderr] 20 | header_size: u32, // 28 [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | flags: u32, // 0x00000001 [INFO] [stderr] | ^^^^^ [INFO] [stderr] 24 | unknown_3a: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TextureDescriptor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `flags` and `unknown_3a` are never read [INFO] [stderr] --> src/asset/texture.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct TextureDescriptor { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 23 | flags: u32, // 0x00000001 [INFO] [stderr] | ^^^^^ [INFO] [stderr] 24 | unknown_3a: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TextureDescriptor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `bnl` (lib) generated 10 warnings [INFO] [stderr] warning: `bnl` (lib test) generated 9 warnings (8 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/bnl-01da629753065da1) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stderr] Running unittests src/bin/main.rs (/opt/rustwide/target/debug/deps/bnltool-96f4e7e687657ee0) [INFO] [stdout] test asset::texture::tests::from_bytes_non_zero_offset ... ok [INFO] [stdout] test asset::texture::tests::from_bytes_zero_offset ... ok [INFO] [stdout] test tests::across_slices ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [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 bnl [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - BNLFile::from_bytes (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - BNLFile::get_raw_assets (line 384) ... FAILED [INFO] [stdout] test src/lib.rs - BNLFile::get_raw_asset (line 325) ... FAILED [INFO] [stdout] test src/lib.rs - BNLFile::get_asset (line 211) ... FAILED [INFO] [stdout] test src/lib.rs - BNLFile::get_assets (line 260) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - BNLFile::from_bytes (line 114) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/lib.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 9 | let bytes = fs::read(&path).expect("Unable to read BNL."); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 8 | let path = PathBuf::new("./my_bnl.bnl"); [INFO] [stdout] | ^^^^^^^^^^^^ -------------- unexpected argument of type `&'static str` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/path.rs:1195:18 [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 8 - let path = PathBuf::new("./my_bnl.bnl"); [INFO] [stdout] 8 + let path = PathBuf::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - BNLFile::get_raw_assets (line 384) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:389:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..=); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:389:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnl::asset::Texture` [INFO] [stdout] --> src/lib.rs:387:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `Texture` in `asset` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 6 - use bnl::asset::Texture; [INFO] [stdout] 6 + use bnl::asset::texture; [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::model::ModelSubresType::Texture; [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] 6 | use bnl::asset::texture::Texture; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_raw_assets` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:390:27 [INFO] [stdout] | [INFO] [stdout] 9 | let raw_assets = bnl_file.get_raw_assets().expect("Unable to extract."); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | [INFO] [stdout] note: the method `get_raw_assets` exists on the type `BNLFile` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn get_raw_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `BNLFile` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 9 | let raw_assets = bnl_file.expect("REASON").get_raw_assets().expect("Unable to extract."); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0586, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - BNLFile::get_raw_asset (line 325) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:330:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..=); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:330:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnl::asset::Texture` [INFO] [stdout] --> src/lib.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `Texture` in `asset` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 6 - use bnl::asset::Texture; [INFO] [stdout] 6 + use bnl::asset::texture; [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::model::ModelSubresType::Texture; [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] 6 | use bnl::asset::texture::Texture; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_raw_asset` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:331:26 [INFO] [stdout] | [INFO] [stdout] 9 | let raw_asset = bnl_file.get_raw_asset().expect("Unable to extract."); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | [INFO] [stdout] note: the method `get_raw_asset` exists on the type `BNLFile` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 339 | pub fn get_raw_asset(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `BNLFile` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 9 | let raw_asset = bnl_file.expect("REASON").get_raw_asset().expect("Unable to extract."); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0586, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - BNLFile::get_asset (line 211) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:216:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..=); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:216:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnl::asset::Texture` [INFO] [stdout] --> src/lib.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `Texture` in `asset` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 6 - use bnl::asset::Texture; [INFO] [stdout] 6 + use bnl::asset::texture; [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::model::ModelSubresType::Texture; [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] 6 | use bnl::asset::texture::Texture; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_asset` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 9 | let tex = bnl_file.get_asset::("aid_texture_mytexture_a_b") [INFO] [stdout] | ^^^^^^^^^ method not found in `Result` [INFO] [stdout] | [INFO] [stdout] note: the method `get_asset` exists on the type `BNLFile` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:219:5 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn get_asset(&self, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `BNLFile` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 9 | let tex = bnl_file.expect("REASON").get_asset::("aid_texture_mytexture_a_b") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0586, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - BNLFile::get_assets (line 260) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:265:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..=); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:265:36 [INFO] [stdout] | [INFO] [stdout] 8 | let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 8 - let bnl_file = BNLFile::from_bytes(...); [INFO] [stdout] 8 + let bnl_file = BNLFile::from_bytes(..); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bnl::asset::Texture` [INFO] [stdout] --> src/lib.rs:263:5 [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `Texture` in `asset` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 6 - use bnl::asset::Texture; [INFO] [stdout] 6 + use bnl::asset::texture; [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 6 | use bnl::asset::model::ModelSubresType::Texture; [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] 6 | use bnl::asset::texture::Texture; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_assets` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:266:25 [INFO] [stdout] | [INFO] [stdout] 9 | let textures = bnl_file.get_assets::(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | [INFO] [stdout] note: the method `get_assets` exists on the type `BNLFile` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn get_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `BNLFile` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 9 | let textures = bnl_file.expect("REASON").get_assets::(); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0586, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - BNLFile::from_bytes (line 114) [INFO] [stdout] src/lib.rs - BNLFile::get_asset (line 211) [INFO] [stdout] src/lib.rs - BNLFile::get_assets (line 260) [INFO] [stdout] src/lib.rs - BNLFile::get_raw_asset (line 325) [INFO] [stdout] src/lib.rs - BNLFile::get_raw_assets (line 384) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.53s; merged doctests compilation took 0.17s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5b785ab3f6d181f7dfb1ddecfd9ebd92498e2113d8f5481b006dffc608467e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b785ab3f6d181f7dfb1ddecfd9ebd92498e2113d8f5481b006dffc608467e4c", kill_on_drop: false }` [INFO] [stdout] 5b785ab3f6d181f7dfb1ddecfd9ebd92498e2113d8f5481b006dffc608467e4c