[INFO] cloning repository https://github.com/tirr-c/unityfs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tirr-c/unityfs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftirr-c%2Funityfs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftirr-c%2Funityfs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8920c83eb4f8530c93917749b62796e4e62e62e6 [INFO] checking tirr-c/unityfs against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftirr-c%2Funityfs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tirr-c/unityfs on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tirr-c/unityfs [INFO] finished tweaking git repo https://github.com/tirr-c/unityfs [INFO] tweaked toml for git repo https://github.com/tirr-c/unityfs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tirr-c/unityfs 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9bd336ffba4aa039badde9bb6c2cfe675c3ab29df536dad868173e7442007788 [INFO] running `Command { std: "docker" "start" "-a" "9bd336ffba4aa039badde9bb6c2cfe675c3ab29df536dad868173e7442007788", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9bd336ffba4aa039badde9bb6c2cfe675c3ab29df536dad868173e7442007788", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bd336ffba4aa039badde9bb6c2cfe675c3ab29df536dad868173e7442007788", kill_on_drop: false }` [INFO] [stdout] 9bd336ffba4aa039badde9bb6c2cfe675c3ab29df536dad868173e7442007788 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5eadf21cf5d788f2941734969d1fc2505777ea1fb1f61adbbc895f2d4baaacc [INFO] running `Command { std: "docker" "start" "-a" "d5eadf21cf5d788f2941734969d1fc2505777ea1fb1f61adbbc895f2d4baaacc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.58 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling nom v5.0.0 [INFO] [stderr] Compiling bumpalo v3.2.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.58 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking bytemuck v1.2.0 [INFO] [stderr] Checking etcdec v0.1.0 (/opt/rustwide/workdir/crates/etcdec) [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> crates/etcdec/src/lib.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | drop(from); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `u64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 108 - drop(from); [INFO] [stdout] 108 + let _ = from; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> crates/etcdec/src/lib.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | drop(from); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `u64` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 121 - drop(from); [INFO] [stdout] 121 + let _ = from; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> crates/etcdec/src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | drop(from); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `u64` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 132 - drop(from); [INFO] [stdout] 132 + let _ = from; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> crates/etcdec/src/lib.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | drop(from); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `u64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 108 - drop(from); [INFO] [stdout] 108 + let _ = from; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> crates/etcdec/src/lib.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | drop(from); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `u64` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 121 - drop(from); [INFO] [stdout] 121 + let _ = from; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> crates/etcdec/src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | drop(from); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `u64` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 132 - drop(from); [INFO] [stdout] 132 + let _ = from; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking image v0.23.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.58 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.58 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.58 [INFO] [stderr] Checking js-sys v0.3.35 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking unityfs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/asset/type_tree.rs:118:79 [INFO] [stdout] | [INFO] [stdout] 117 | impl<'a> TypeTree<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 118 | fn parse(input: &'a [u8], endianness: Endianness, format: u32) -> IResult<&[u8], Self> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/asset/type_tree.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/asset.rs:47:80 [INFO] [stdout] | [INFO] [stdout] 46 | impl<'b> Asset<'b> { [INFO] [stdout] | -- lifetime `'b` declared here [INFO] [stdout] 47 | pub(crate) fn parse(name: String, input: &'b [u8], offset: u64) -> IResult<&[u8], Self> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/compression/lz4.rs:10:32 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> Sequences<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 10 | fn new(input: &'a [u8]) -> Sequences { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/lib.rs:44:46 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> UnityFsMeta<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 44 | pub fn parse(input: &'a [u8]) -> IResult<&[u8], Self> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/asset/type_tree.rs:118:79 [INFO] [stdout] | [INFO] [stdout] 117 | impl<'a> TypeTree<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 118 | fn parse(input: &'a [u8], endianness: Endianness, format: u32) -> IResult<&[u8], Self> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/asset/type_tree.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | #[derive(Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/asset.rs:47:80 [INFO] [stdout] | [INFO] [stdout] 46 | impl<'b> Asset<'b> { [INFO] [stdout] | -- lifetime `'b` declared here [INFO] [stdout] 47 | pub(crate) fn parse(name: String, input: &'b [u8], offset: u64) -> IResult<&[u8], Self> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/compression/lz4.rs:10:32 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> Sequences<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 10 | fn new(input: &'a [u8]) -> Sequences { [INFO] [stdout] | ^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/lib.rs:44:46 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a> UnityFsMeta<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 44 | pub fn parse(input: &'a [u8]) -> IResult<&[u8], Self> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/asset.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Asset<'b> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 18 | name: String, [INFO] [stdout] 19 | metadata_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | file_size: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | format: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | data_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | tree: TypeMetadata<'b>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | objects: Vec>, [INFO] [stdout] 25 | adds: Vec<(u64, i32)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | refs: Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Asset` 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 `asset_path`, `guid`, `ty`, and `file_path` are never read [INFO] [stdout] --> src/asset.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct AssetRef<'b> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 40 | asset_path: Cow<'b, str>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 41 | guid: &'b [u8], [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | ty: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 43 | file_path: Cow<'b, str>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AssetRef` 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 `version` and `index` are never read [INFO] [stdout] --> src/asset/type_tree.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TypeTree<'a> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hash` is never read [INFO] [stdout] --> src/asset/type_tree.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 339 | struct TypeMetadataEntry<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 340 | class_id: i32, [INFO] [stdout] 341 | hash: Option<&'a [u8]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeMetadataEntry` 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 `generator_version` and `target_platform` are never read [INFO] [stdout] --> src/asset/type_tree.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 406 | pub struct TypeMetadata<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 407 | generator_version: Cow<'a, str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 408 | target_platform: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/metadata.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct NodeInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub(crate) status: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/asset/type_tree.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Data` [INFO] [stdout] 228 | #[serde(tag = "type", content = "data")] [INFO] [stdout] 229 | pub enum Data<'b> { [INFO] [stdout] | ---- `Data` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/asset.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Asset<'b> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 18 | name: String, [INFO] [stdout] 19 | metadata_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | file_size: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | format: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | data_offset: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | tree: TypeMetadata<'b>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | objects: Vec>, [INFO] [stdout] 25 | adds: Vec<(u64, i32)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | refs: Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Asset` 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 `asset_path`, `guid`, `ty`, and `file_path` are never read [INFO] [stdout] --> src/asset.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct AssetRef<'b> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 40 | asset_path: Cow<'b, str>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 41 | guid: &'b [u8], [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | ty: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 43 | file_path: Cow<'b, str>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AssetRef` 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 `version` and `index` are never read [INFO] [stdout] --> src/asset/type_tree.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TypeTree<'a> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hash` is never read [INFO] [stdout] --> src/asset/type_tree.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 339 | struct TypeMetadataEntry<'a> { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 340 | class_id: i32, [INFO] [stdout] 341 | hash: Option<&'a [u8]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeMetadataEntry` 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 `generator_version` and `target_platform` are never read [INFO] [stdout] --> src/asset/type_tree.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 406 | pub struct TypeMetadata<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 407 | generator_version: Cow<'a, str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 408 | target_platform: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/metadata.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct NodeInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub(crate) status: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NodeInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/asset/type_tree.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | #[derive(Serialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Data` [INFO] [stdout] 228 | #[serde(tag = "type", content = "data")] [INFO] [stdout] 229 | pub enum Data<'b> { [INFO] [stdout] | ---- `Data` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-unityfs v0.4.0 (/opt/rustwide/workdir/crates/wasm-unityfs) [INFO] [stdout] error: this conversion is useless `f64` to `f64` [INFO] [stdout] --> crates/wasm-unityfs/src/lib.rs:327:46 [INFO] [stdout] | [INFO] [stdout] 327 | Data::Double(v) => JsValue::from_f64((*v).into()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `f64` to `f64` [INFO] [stdout] --> crates/wasm-unityfs/src/lib.rs:418:46 [INFO] [stdout] | [INFO] [stdout] 418 | Data::Double(v) => JsValue::from_f64((*v).into()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `f64` to `f64` [INFO] [stdout] --> crates/wasm-unityfs/src/lib.rs:327:46 [INFO] [stdout] | [INFO] [stdout] 327 | Data::Double(v) => JsValue::from_f64((*v).into()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `f64` to `f64` [INFO] [stdout] --> crates/wasm-unityfs/src/lib.rs:418:46 [INFO] [stdout] | [INFO] [stdout] 418 | Data::Double(v) => JsValue::from_f64((*v).into()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wasm-unityfs` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `wasm-unityfs` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "d5eadf21cf5d788f2941734969d1fc2505777ea1fb1f61adbbc895f2d4baaacc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5eadf21cf5d788f2941734969d1fc2505777ea1fb1f61adbbc895f2d4baaacc", kill_on_drop: false }` [INFO] [stdout] d5eadf21cf5d788f2941734969d1fc2505777ea1fb1f61adbbc895f2d4baaacc