[INFO] fetching crate pixel-sig 0.4.0... [INFO] checking pixel-sig-0.4.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate pixel-sig 0.4.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate pixel-sig 0.4.0 [INFO] finished tweaking crates.io crate pixel-sig 0.4.0 [INFO] tweaked toml for crates.io crate pixel-sig 0.4.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pixel-sig 0.4.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 65 packages to latest compatible versions [INFO] [stderr] Adding amcl_wrapper v0.3.5 (available: v0.4.0) [INFO] [stderr] Adding rand v0.7.3 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded secret_sharing v0.2.0 [INFO] [stderr] Downloaded amcl_wrapper v0.3.5 [INFO] [stderr] Downloaded miracl_amcl v3.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02988243142b74235be3b70dbbcc2a4cbbe255385d2289d4fa00f4d6be5fd467 [INFO] running `Command { std: "docker" "start" "-a" "02988243142b74235be3b70dbbcc2a4cbbe255385d2289d4fa00f4d6be5fd467", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02988243142b74235be3b70dbbcc2a4cbbe255385d2289d4fa00f4d6be5fd467", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02988243142b74235be3b70dbbcc2a4cbbe255385d2289d4fa00f4d6be5fd467", kill_on_drop: false }` [INFO] [stdout] 02988243142b74235be3b70dbbcc2a4cbbe255385d2289d4fa00f4d6be5fd467 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba8f7ba8e3cbee2fceda117d94bd5c7bf4d91440bef7631df586246d6b5cee7d [INFO] running `Command { std: "docker" "start" "-a" "ba8f7ba8e3cbee2fceda117d94bd5c7bf4d91440bef7631df586246d6b5cee7d", kill_on_drop: false }` [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking backtrace v0.3.75 [INFO] [stderr] Checking serde_json v1.0.143 [INFO] [stderr] Checking subtle-encoding v0.5.1 [INFO] [stderr] Checking miracl_amcl v3.2.5 [INFO] [stderr] Checking sha3 v0.8.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking amcl_wrapper v0.3.5 [INFO] [stderr] Checking secret_sharing v0.2.0 [INFO] [stderr] Checking pixel-sig v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::Error` [INFO] [stdout] --> src/errors.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use failure::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/keys.rs:243:40 [INFO] [stdout] | [INFO] [stdout] 243 | sk_right_prime_prime[0] += (&path_factor * &r); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - sk_right_prime_prime[0] += (&path_factor * &r); [INFO] [stdout] 243 + sk_right_prime_prime[0] += &path_factor * &r; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/keys.rs:393:14 [INFO] [stdout] | [INFO] [stdout] 393 | d += (&path_factor * &r); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 393 - d += (&path_factor * &r); [INFO] [stdout] 393 + d += &path_factor * &r; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `from_node_num_to_path` [INFO] [stdout] --> src/signature.rs:9:52 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::util::{calculate_path_factor_using_t_l, from_node_num_to_path, GeneratorSet}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `amcl_wrapper::field_elem::FieldElement` [INFO] [stdout] --> src/util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use amcl_wrapper::field_elem::FieldElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::Error` [INFO] [stdout] --> src/errors.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use failure::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/keys.rs:243:40 [INFO] [stdout] | [INFO] [stdout] 243 | sk_right_prime_prime[0] += (&path_factor * &r); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 243 - sk_right_prime_prime[0] += (&path_factor * &r); [INFO] [stdout] 243 + sk_right_prime_prime[0] += &path_factor * &r; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/keys.rs:393:14 [INFO] [stdout] | [INFO] [stdout] 393 | d += (&path_factor * &r); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 393 - d += (&path_factor * &r); [INFO] [stdout] 393 + d += &path_factor * &r; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/keys.rs:486:21 [INFO] [stdout] | [INFO] [stdout] 486 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `from_node_num_to_path` [INFO] [stdout] --> src/signature.rs:9:52 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::util::{calculate_path_factor_using_t_l, from_node_num_to_path, GeneratorSet}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/signature.rs:217:21 [INFO] [stdout] | [INFO] [stdout] 217 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `amcl_wrapper::field_elem::FieldElement` [INFO] [stdout] --> src/util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use amcl_wrapper::field_elem::FieldElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::rngs::ThreadRng` [INFO] [stdout] --> src/threshold_sig.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | use rand::rngs::ThreadRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GroupElementVector` [INFO] [stdout] --> src/keys.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | use amcl_wrapper::group_elem::{GroupElement, GroupElementVector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GroupElement` [INFO] [stdout] --> src/threshold_sig.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | use amcl_wrapper::group_elem::{GroupElement, GroupElementVector}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `T` is never read [INFO] [stdout] --> src/keys.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 175 | pub struct SigkeyManager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 176 | l: u8, [INFO] [stdout] 177 | T: u128, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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/errors.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_PixelError` [INFO] [stdout] 13 | pub enum PixelError { [INFO] [stdout] | ---------- `PixelError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (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/errors.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_PixelError` [INFO] [stdout] 13 | pub enum PixelError { [INFO] [stdout] | ---------- `PixelError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PrefixPoP` should have an upper case name [INFO] [stdout] --> src/keys.rs:93:7 [INFO] [stdout] | [INFO] [stdout] 93 | const PrefixPoP: &[u8] = b"PoP"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 93 - const PrefixPoP: &[u8] = b"PoP"; [INFO] [stdout] 93 + const PREFIX_PO_P: &[u8] = b"PoP"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GroupElementVector` [INFO] [stdout] --> src/keys.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | use amcl_wrapper::group_elem::{GroupElement, GroupElementVector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GroupElement` [INFO] [stdout] --> src/threshold_sig.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | use amcl_wrapper::group_elem::{GroupElement, GroupElementVector}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set1` [INFO] [stdout] --> src/keys.rs:531:20 [INFO] [stdout] | [INFO] [stdout] 531 | let (_, _, set1, _) = setup::(T1, "test_pixel", &mut rng, &mut db1).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set2` [INFO] [stdout] --> src/keys.rs:538:20 [INFO] [stdout] | [INFO] [stdout] 538 | let (_, _, set2, _) = setup::(T2, "test_pixel", &mut rng, &mut db2).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/keys.rs:740:13 [INFO] [stdout] | [INFO] [stdout] 740 | let l = calculate_l(T).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/keys.rs:742:17 [INFO] [stdout] | [INFO] [stdout] 742 | let mut t = 1u128; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/keys.rs:793:17 [INFO] [stdout] | [INFO] [stdout] 793 | let mut t = 1u128; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> src/signature.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | set: &SigkeyManager, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/signature.rs:417:17 [INFO] [stdout] | [INFO] [stdout] 417 | let mut t = 1u128; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/signature.rs:470:17 [INFO] [stdout] | [INFO] [stdout] 470 | let mut t = 1u128; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/signature.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | let mut t = 1u128; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/signature.rs:528:17 [INFO] [stdout] | [INFO] [stdout] 528 | let mut t = 1u128; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secret_x` [INFO] [stdout] --> src/threshold_sig.rs:240:14 [INFO] [stdout] | [INFO] [stdout] 240 | let (secret_x, signers) = trusted_party_SSS_keygen(threshold, total, &mut rng, &generators.0, &generators.1).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `T` is never read [INFO] [stdout] --> src/keys.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 175 | pub struct SigkeyManager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 176 | l: u8, [INFO] [stdout] 177 | T: u128, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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/errors.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_PixelError` [INFO] [stdout] 13 | pub enum PixelError { [INFO] [stdout] | ---------- `PixelError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (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/errors.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_PixelError` [INFO] [stdout] 13 | pub enum PixelError { [INFO] [stdout] | ---------- `PixelError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_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 `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PrefixPoP` should have an upper case name [INFO] [stdout] --> src/keys.rs:93:7 [INFO] [stdout] | [INFO] [stdout] 93 | const PrefixPoP: &[u8] = b"PoP"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 93 - const PrefixPoP: &[u8] = b"PoP"; [INFO] [stdout] 93 + const PREFIX_PO_P: &[u8] = b"PoP"; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.53s [INFO] running `Command { std: "docker" "inspect" "ba8f7ba8e3cbee2fceda117d94bd5c7bf4d91440bef7631df586246d6b5cee7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba8f7ba8e3cbee2fceda117d94bd5c7bf4d91440bef7631df586246d6b5cee7d", kill_on_drop: false }` [INFO] [stdout] ba8f7ba8e3cbee2fceda117d94bd5c7bf4d91440bef7631df586246d6b5cee7d