[INFO] fetching crate glsl-layout 0.5.0... [INFO] testing glsl-layout-0.5.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate glsl-layout 0.5.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate glsl-layout 0.5.0 [INFO] finished tweaking crates.io crate glsl-layout 0.5.0 [INFO] tweaked toml for crates.io crate glsl-layout 0.5.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate glsl-layout 0.5.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 24 packages to latest compatible versions [INFO] [stderr] Adding glam v0.22.0 (available: v0.30.8) [INFO] [stderr] Adding nalgebra v0.31.4 (available: v0.34.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ff3663734ce52ff6e966dcbf3135db2246b07b0e2fec6ba57885f40972fcdb8 [INFO] running `Command { std: "docker" "start" "-a" "9ff3663734ce52ff6e966dcbf3135db2246b07b0e2fec6ba57885f40972fcdb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ff3663734ce52ff6e966dcbf3135db2246b07b0e2fec6ba57885f40972fcdb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ff3663734ce52ff6e966dcbf3135db2246b07b0e2fec6ba57885f40972fcdb8", kill_on_drop: false }` [INFO] [stdout] 9ff3663734ce52ff6e966dcbf3135db2246b07b0e2fec6ba57885f40972fcdb8 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da5a02b5cc805d0d83e886a17f5d279562b660819aae1b7f06f2a266753bd0bf [INFO] running `Command { std: "docker" "start" "-a" "da5a02b5cc805d0d83e886a17f5d279562b660819aae1b7f06f2a266753bd0bf", kill_on_drop: false }` [INFO] [stderr] Compiling glsl-layout-derive v0.4.0 [INFO] [stderr] Compiling glsl-layout v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/array.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stdout] | ^^^^^ --------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/array.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stdout] | ^^^^^^^^^ ------------------------ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.44s [INFO] running `Command { std: "docker" "inspect" "da5a02b5cc805d0d83e886a17f5d279562b660819aae1b7f06f2a266753bd0bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da5a02b5cc805d0d83e886a17f5d279562b660819aae1b7f06f2a266753bd0bf", kill_on_drop: false }` [INFO] [stdout] da5a02b5cc805d0d83e886a17f5d279562b660819aae1b7f06f2a266753bd0bf [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bac252569433cf590c3b4b0a617bc549bcdc5dfdcf4ced3f0f86a19188996ec [INFO] running `Command { std: "docker" "start" "-a" "0bac252569433cf590c3b4b0a617bc549bcdc5dfdcf4ced3f0f86a19188996ec", kill_on_drop: false }` [INFO] [stderr] Compiling glsl-layout v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/array.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stdout] | ^^^^^ --------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/array.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stdout] | ^^^^^^^^^ ------------------------ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Test` is never constructed [INFO] [stdout] --> src/lib.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | struct Test { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Test` is never constructed [INFO] [stdout] --> src/lib.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | struct Test { [INFO] [stdout] | ^^^^ [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/lib.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | #[derive(Copy, Clone, Uniform)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Uniform` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_GLSL_LAYOUT_Test` and up 2 bodies [INFO] [stdout] 112 | struct Test { [INFO] [stdout] | ---- `Test` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Uniform` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Uniform` may come from an old version of the `glsl_layout_derive` crate, try updating your dependency with `cargo update -p glsl_layout_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 `Uniform` (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/lib.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | #[derive(Copy, Clone, Uniform)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Uniform` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_GLSL_LAYOUT_Test` and up 2 bodies [INFO] [stdout] 123 | struct Test { [INFO] [stdout] | ---- `Test` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Uniform` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Uniform` may come from an old version of the `glsl_layout_derive` crate, try updating your dependency with `cargo update -p glsl_layout_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 `Uniform` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/array.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stdout] | ^^^^^ --------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/array.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stdout] | ^^^^^^^^^ ------------------------ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "0bac252569433cf590c3b4b0a617bc549bcdc5dfdcf4ced3f0f86a19188996ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bac252569433cf590c3b4b0a617bc549bcdc5dfdcf4ced3f0f86a19188996ec", kill_on_drop: false }` [INFO] [stdout] 0bac252569433cf590c3b4b0a617bc549bcdc5dfdcf4ced3f0f86a19188996ec [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3ec4d78205517afcadeb15f8cd5bfc69bec1c549b502f02e495560ad59fa5e24 [INFO] running `Command { std: "docker" "start" "-a" "3ec4d78205517afcadeb15f8cd5bfc69bec1c549b502f02e495560ad59fa5e24", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/array.rs:74:17 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stderr] | ^^^^^ --------------------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 74 | pub fn iter(&self) -> ArrayIter>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/array.rs:78:21 [INFO] [stderr] | [INFO] [stderr] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stderr] | ^^^^^^^^^ ------------------------ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 78 | pub fn iter_mut(&mut self) -> ArrayIter>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `glsl-layout` (lib) generated 2 warnings (run `cargo fix --lib -p glsl-layout` to apply 2 suggestions) [INFO] [stderr] warning: struct `Test` is never constructed [INFO] [stderr] --> src/lib.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 112 | struct Test { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Test` is never constructed [INFO] [stderr] --> src/lib.rs:123:12 [INFO] [stderr] | [INFO] [stderr] 123 | struct Test { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:111:27 [INFO] [stderr] | [INFO] [stderr] 111 | #[derive(Copy, Clone, Uniform)] [INFO] [stderr] | ^------ [INFO] [stderr] | | [INFO] [stderr] | `Uniform` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_GLSL_LAYOUT_Test` and up 2 bodies [INFO] [stderr] 112 | struct Test { [INFO] [stderr] | ---- `Test` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Uniform` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Uniform` may come from an old version of the `glsl_layout_derive` crate, try updating your dependency with `cargo update -p glsl_layout_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Uniform` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:122:27 [INFO] [stderr] | [INFO] [stderr] 122 | #[derive(Copy, Clone, Uniform)] [INFO] [stderr] | ^------ [INFO] [stderr] | | [INFO] [stderr] | `Uniform` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_GLSL_LAYOUT_Test` and up 2 bodies [INFO] [stderr] 123 | struct Test { [INFO] [stderr] | ---- `Test` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Uniform` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Uniform` may come from an old version of the `glsl_layout_derive` crate, try updating your dependency with `cargo update -p glsl_layout_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `Uniform` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `glsl-layout` (lib test) generated 6 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/glsl_layout-41e7fda4804f3497) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test array::test_array ... ok [INFO] [stdout] test test_array ... ok [INFO] [stdout] test test_derive ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests glsl_layout [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test src/vec.rs - vec::bvec3 (line 76) ... ok [INFO] [stdout] test src/vec.rs - vec::ivec2 (line 110) ... ok [INFO] [stdout] test src/vec.rs - vec::dvec4 (line 297) ... ok [INFO] [stdout] test src/vec.rs - vec::bvec2 (line 59) ... ok [INFO] [stdout] test src/vec.rs - vec::vec4 (line 246) ... ok [INFO] [stdout] test src/vec.rs - vec::uvec2 (line 161) ... ok [INFO] [stdout] test src/vec.rs - vec::bvec4 (line 93) ... ok [INFO] [stdout] test src/vec.rs - vec::vec3 (line 229) ... ok [INFO] [stdout] test src/vec.rs - vec::ivec3 (line 127) ... ok [INFO] [stdout] test src/vec.rs - vec::ivec4 (line 144) ... ok [INFO] [stdout] test src/vec.rs - vec::vec2 (line 212) ... ok [INFO] [stdout] test src/lib.rs - (line 9) ... FAILED [INFO] [stdout] test src/vec.rs - vec::uvec4 (line 195) ... ok [INFO] [stdout] test src/vec.rs - vec::dvec2 (line 263) ... ok [INFO] [stdout] test src/vec.rs - vec::uvec3 (line 178) ... ok [INFO] [stdout] test src/vec.rs - vec::dvec3 (line 280) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 9) stdout ---- [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:28:39 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Default, Clone, Copy, Uniform)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Uniform` is not local [INFO] [stdout] 21 | struct Foo { [INFO] [stdout] | --- `Foo` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Uniform` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Uniform` may come from an old version of the `glsl_layout_derive` crate, try updating your dependency with `cargo update -p glsl_layout_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] = help: make this doc-test a standalone test with its own `fn main() { ... }` [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 `Uniform` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/lib.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 9 | let value: &$type = &*::std::ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 33 | offset_of!(UFoo: y), [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/lib.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 9 | let value: &$type = &*::std::ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 39 | offset_of!(UFoo: z), [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/lib.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 9 | let value: &$type = &*::std::ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 40 | round_up_to(offset_of!(UFoo: y) + size_of::(), 4), [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/lib.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 9 | let value: &$type = &*::std::ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 45 | offset_of!(UFoo: b), [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> src/lib.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 9 | let value: &$type = &*::std::ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] ... [INFO] [stdout] 46 | offset_of!(UFoo: a) + size_of::<[[f32; 4]; 3]>(), [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] Test executable failed (signal: 6 (SIGABRT) (core dumped)). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (379) panicked at src/lib.rs:33:5: [INFO] [stdout] null pointer dereference occurred [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5d6fb4f9ec22 - std::backtrace_rs::backtrace::libunwind::trace::hc4a5f428cfb78751 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5d6fb4f9ec22 - std::backtrace_rs::backtrace::trace_unsynchronized::h20e1095684b4c296 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5d6fb4f9ec22 - std::sys::backtrace::_print_fmt::h461f2e3a8f6b29e2 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5d6fb4f9ec22 - ::fmt::h4ee3a75aa71a2c45 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5d6fb4fba6ff - core::fmt::rt::Argument::fmt::h6f1564705cd089af [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5d6fb4fba6ff - core::fmt::write::h21ca93b65a7c281a [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5d6fb4f90c03 - std::io::default_write_fmt::h745a1edf2999cb3b [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5d6fb4f90c03 - std::io::Write::write_fmt::hfc56e66d6e189682 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5d6fb4f9f232 - std::sys::backtrace::BacktraceLock::print::h58d5d73f9e953cf1 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5d6fb4f8ec8c - std::panicking::default_hook::{{closure}}::h1457fbe47c9457d1 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5d6fb4f8eacc - std::panicking::default_hook::hccb5e73b206c0830 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x5d6fb4f8f7da - std::panicking::panic_with_hook::h3190ecc6229cdd29 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x5d6fb4f9f006 - std::panicking::panic_handler::{{closure}}::ha1f1b769bc2bb40c [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:700:13 [INFO] [stdout] 13: 0x5d6fb4f9ef99 - std::sys::backtrace::__rust_end_short_backtrace::h5f9cf66f19c2a172 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x5d6fb4f8f58d - __rustc[a93bd50104b99ad4]::rust_begin_unwind [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x5d6fb4fbcf1d - core::panicking::panic_nounwind_fmt::runtime::h13e4beb899d003a0 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/panicking.rs:117:22 [INFO] [stdout] 16: 0x5d6fb4fbcf1d - core::panicking::panic_nounwind_fmt::h8f5b2d2b4e53b323 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/intrinsics/mod.rs:2361:9 [INFO] [stdout] 17: 0x5d6fb4fbd200 - core::panicking::panic_null_pointer_dereference::hc377c1f92f71b6cb [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/panicking.rs:311:5 [INFO] [stdout] 18: 0x5d6fb4f7ccc2 - rust_out::main::h61a73a86de211918 [INFO] [stdout] 19: 0x5d6fb4f7e2a3 - core::ops::function::FnOnce::call_once::h6c9c00fd6ee79245 [INFO] [stdout] 20: 0x5d6fb4f7e2b6 - std::sys::backtrace::__rust_begin_short_backtrace::h916f7d6bfb06988c [INFO] [stdout] 21: 0x5d6fb4f7dff9 - std::rt::lang_start::{{closure}}::h8b630493ef2474c7 [INFO] [stdout] 22: 0x5d6fb4f9f9b0 - core::ops::function::impls:: for &F>::call_once::hae16bf8966719858 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/ops/function.rs:290:21 [INFO] [stdout] 23: 0x5d6fb4f9f9b0 - std::panicking::catch_unwind::do_call::hd4eb7cf01d0f66cd [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 24: 0x5d6fb4f9f9b0 - std::panicking::catch_unwind::h35b4afc45093edf5 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 25: 0x5d6fb4f9f9b0 - std::panic::catch_unwind::h5a7ef11ac2fa7980 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 26: 0x5d6fb4f9f9b0 - std::rt::lang_start_internal::{{closure}}::h18f8e059e8eb5f5a [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:175:24 [INFO] [stdout] 27: 0x5d6fb4f9f9b0 - std::panicking::catch_unwind::do_call::hb4f94f34ea41283f [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:590:40 [INFO] [stdout] 28: 0x5d6fb4f9f9b0 - std::panicking::catch_unwind::hfbb31091ea806204 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panicking.rs:553:19 [INFO] [stdout] 29: 0x5d6fb4f9f9b0 - std::panic::catch_unwind::hc88f452387620cfb [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x5d6fb4f9f9b0 - std::rt::lang_start_internal::h23cfb6dcbf9c9010 [INFO] [stdout] at /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/std/src/rt.rs:171:5 [INFO] [stdout] 31: 0x5d6fb4f7dfe1 - std::rt::lang_start::h2676fe224d780b30 [INFO] [stdout] 32: 0x5d6fb4f7e335 - main [INFO] [stdout] 33: 0x7f7b95e941ca - [INFO] [stdout] 34: 0x7f7b95e9428b - __libc_start_main [INFO] [stdout] 35: 0x5d6fb4f7bfe5 - _start [INFO] [stdout] 36: 0x0 - [INFO] [stdout] thread caused non-unwinding panic. aborting. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 9) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 15 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.97s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3ec4d78205517afcadeb15f8cd5bfc69bec1c549b502f02e495560ad59fa5e24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ec4d78205517afcadeb15f8cd5bfc69bec1c549b502f02e495560ad59fa5e24", kill_on_drop: false }` [INFO] [stdout] 3ec4d78205517afcadeb15f8cd5bfc69bec1c549b502f02e495560ad59fa5e24