[INFO] cloning repository https://github.com/LennyHirsch/testing_compression_formats [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LennyHirsch/testing_compression_formats" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLennyHirsch%2Ftesting_compression_formats", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLennyHirsch%2Ftesting_compression_formats'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cb808865c2183e96c09c741baf617e754fb36bdd [INFO] building LennyHirsch/testing_compression_formats against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLennyHirsch%2Ftesting_compression_formats" "/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/LennyHirsch/testing_compression_formats [INFO] finished tweaking git repo https://github.com/LennyHirsch/testing_compression_formats [INFO] tweaked toml for git repo https://github.com/LennyHirsch/testing_compression_formats written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LennyHirsch/testing_compression_formats on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LennyHirsch/testing_compression_formats 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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zstd v0.12.3+zstd.1.5.2 [INFO] [stderr] Downloaded quote v1.0.28 [INFO] [stderr] Downloaded zstd-safe v6.0.5+zstd.1.5.4 [INFO] [stderr] Downloaded hdf5-derive v0.8.1 [INFO] [stderr] Downloaded hdf5-types v0.8.1 [INFO] [stderr] Downloaded half v2.3.1 [INFO] [stderr] Downloaded ascii v1.1.0 [INFO] [stderr] Downloaded hdf5-sys v0.8.1 [INFO] [stderr] Downloaded matrixmultiply v0.3.7 [INFO] [stderr] Downloaded pin-project v1.1.0 [INFO] [stderr] Downloaded num-complex v0.4.3 [INFO] [stderr] Downloaded hdf5 v0.8.1 [INFO] [stderr] Downloaded pin-project-internal v1.1.0 [INFO] [stderr] Downloaded exr v1.6.4 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6925de7b24b6255e56fab51981d042e3643b2d5155466f64610f0ca510e8327b [INFO] running `Command { std: "docker" "start" "-a" "6925de7b24b6255e56fab51981d042e3643b2d5155466f64610f0ca510e8327b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6925de7b24b6255e56fab51981d042e3643b2d5155466f64610f0ca510e8327b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6925de7b24b6255e56fab51981d042e3643b2d5155466f64610f0ca510e8327b", kill_on_drop: false }` [INFO] [stdout] 6925de7b24b6255e56fab51981d042e3643b2d5155466f64610f0ca510e8327b [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] d55d3625e6c20024da312f54d28a49f3d587bd1289f27dd258fd349b74f6c1a6 [INFO] running `Command { std: "docker" "start" "-a" "d55d3625e6c20024da312f54d28a49f3d587bd1289f27dd258fd349b74f6c1a6", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling simd-adler32 v0.3.5 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling flate2 v1.0.26 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling paste v1.0.12 [INFO] [stderr] Compiling hdf5-types v0.8.1 [INFO] [stderr] Compiling zstd-safe v6.0.5+zstd.1.5.4 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling jobserver v0.1.26 [INFO] [stderr] Compiling crossbeam-channel v0.5.8 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling fdeflate v0.3.0 [INFO] [stderr] Compiling num-complex v0.4.3 [INFO] [stderr] Compiling half v2.3.1 [INFO] [stderr] Compiling ascii v1.1.0 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling hdf5 v0.8.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling png v0.17.9 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Compiling rayon v1.7.0 [INFO] [stderr] Compiling zstd-sys v2.0.8+zstd.1.5.5 [INFO] [stderr] Compiling hdf5-sys v0.8.1 [INFO] [stderr] Compiling jpeg-decoder v0.3.0 [INFO] [stderr] Compiling hdf5-derive v0.8.1 [INFO] [stderr] Compiling tiff v0.8.1 [INFO] [stderr] Compiling pin-project-internal v1.1.0 [INFO] [stderr] Compiling pin-project v1.1.0 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling exr v1.6.4 [INFO] [stderr] Compiling zstd v0.12.3+zstd.1.5.2 [INFO] [stderr] Compiling image v0.24.6 [INFO] [stderr] Compiling testing_compression_formats v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use hdf5::{File, H5Type, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `s` [INFO] [stdout] --> src/main.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use ndarray::{arr2, s}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_hdf5` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn write_hdf5() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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/main.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(H5Type, Clone, PartialEq, Debug)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `H5Type` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_H5TYPE_FOR_Colors` [INFO] [stdout] 7 | #[repr(u8)] [INFO] [stdout] 8 | pub enum Colors { [INFO] [stdout] | ------ `Colors` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `H5Type` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `H5Type` may come from an old version of the `hdf5_derive` crate, try updating your dependency with `cargo update -p hdf5_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 `H5Type` (in Nightly builds, run with -Z macro-backtrace for more info) [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/main.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(H5Type, Clone, PartialEq, Debug)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `H5Type` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_H5TYPE_FOR_Color` [INFO] [stdout] 15 | #[repr(C)] [INFO] [stdout] 16 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `H5Type` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `H5Type` may come from an old version of the `hdf5_derive` crate, try updating your dependency with `cargo update -p hdf5_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: this warning originates in the derive macro `H5Type` (in Nightly builds, run with -Z macro-backtrace for more info) [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/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(H5Type, Clone, PartialEq, Debug)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `H5Type` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_H5TYPE_FOR_Pixel` [INFO] [stdout] 23 | #[repr(C)] [INFO] [stdout] 24 | pub struct Pixel { [INFO] [stdout] | ----- `Pixel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `H5Type` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `H5Type` may come from an old version of the `hdf5_derive` crate, try updating your dependency with `cargo update -p hdf5_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: this warning originates in the derive macro `H5Type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.77s [INFO] running `Command { std: "docker" "inspect" "d55d3625e6c20024da312f54d28a49f3d587bd1289f27dd258fd349b74f6c1a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d55d3625e6c20024da312f54d28a49f3d587bd1289f27dd258fd349b74f6c1a6", kill_on_drop: false }` [INFO] [stdout] d55d3625e6c20024da312f54d28a49f3d587bd1289f27dd258fd349b74f6c1a6 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 5d5727ad8c28cf6487b3f8fcdac009aba8ed762dc24966bd6cf528d4fe20e158 [INFO] running `Command { std: "docker" "start" "-a" "5d5727ad8c28cf6487b3f8fcdac009aba8ed762dc24966bd6cf528d4fe20e158", kill_on_drop: false }` [INFO] [stderr] Compiling testing_compression_formats v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use hdf5::{File, H5Type, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `s` [INFO] [stdout] --> src/main.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use ndarray::{arr2, s}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_hdf5` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn write_hdf5() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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/main.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(H5Type, Clone, PartialEq, Debug)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `H5Type` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_H5TYPE_FOR_Colors` [INFO] [stdout] 7 | #[repr(u8)] [INFO] [stdout] 8 | pub enum Colors { [INFO] [stdout] | ------ `Colors` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `H5Type` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `H5Type` may come from an old version of the `hdf5_derive` crate, try updating your dependency with `cargo update -p hdf5_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 `H5Type` (in Nightly builds, run with -Z macro-backtrace for more info) [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/main.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(H5Type, Clone, PartialEq, Debug)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `H5Type` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_H5TYPE_FOR_Color` [INFO] [stdout] 15 | #[repr(C)] [INFO] [stdout] 16 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `H5Type` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `H5Type` may come from an old version of the `hdf5_derive` crate, try updating your dependency with `cargo update -p hdf5_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: this warning originates in the derive macro `H5Type` (in Nightly builds, run with -Z macro-backtrace for more info) [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/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(H5Type, Clone, PartialEq, Debug)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `H5Type` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_H5TYPE_FOR_Pixel` [INFO] [stdout] 23 | #[repr(C)] [INFO] [stdout] 24 | pub struct Pixel { [INFO] [stdout] | ----- `Pixel` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `H5Type` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `H5Type` may come from an old version of the `hdf5_derive` crate, try updating your dependency with `cargo update -p hdf5_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: this warning originates in the derive macro `H5Type` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.67s [INFO] running `Command { std: "docker" "inspect" "5d5727ad8c28cf6487b3f8fcdac009aba8ed762dc24966bd6cf528d4fe20e158", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d5727ad8c28cf6487b3f8fcdac009aba8ed762dc24966bd6cf528d4fe20e158", kill_on_drop: false }` [INFO] [stdout] 5d5727ad8c28cf6487b3f8fcdac009aba8ed762dc24966bd6cf528d4fe20e158