[INFO] fetching crate desfire 0.2.0-alpha3... [INFO] testing desfire-0.2.0-alpha3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate desfire 0.2.0-alpha3 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate desfire 0.2.0-alpha3 [INFO] finished tweaking crates.io crate desfire 0.2.0-alpha3 [INFO] tweaked toml for crates.io crate desfire 0.2.0-alpha3 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate desfire 0.2.0-alpha3 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 55 packages to latest compatible versions [INFO] [stderr] Adding aes v0.7.5 (available: v0.8.4) [INFO] [stderr] Adding block-modes v0.8.1 (available: v0.9.1) [INFO] [stderr] Adding des v0.7.0 (available: v0.8.1) [INFO] [stderr] Adding hex-literal v0.3.4 (available: v1.0.0) [INFO] [stderr] Adding mockall v0.11.4 (available: v0.13.1) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding simple-error v0.2.3 (available: v0.3.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pcsc-sys v1.3.0 [INFO] [stderr] Downloaded pcsc v2.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fd94fecfdeca17295c219c4bb00f777882d82997c86e2a5fd41c7ba758233f3 [INFO] running `Command { std: "docker" "start" "-a" "5fd94fecfdeca17295c219c4bb00f777882d82997c86e2a5fd41c7ba758233f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fd94fecfdeca17295c219c4bb00f777882d82997c86e2a5fd41c7ba758233f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fd94fecfdeca17295c219c4bb00f777882d82997c86e2a5fd41c7ba758233f3", kill_on_drop: false }` [INFO] [stdout] 5fd94fecfdeca17295c219c4bb00f777882d82997c86e2a5fd41c7ba758233f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4734e2539c12be4d5ac464cb29a5f0eca6310f99070e2cda17c3e33bcf9d2ae4 [INFO] running `Command { std: "docker" "start" "-a" "4734e2539c12be4d5ac464cb29a5f0eca6310f99070e2cda17c3e33bcf9d2ae4", kill_on_drop: false }` [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling simple-error v0.2.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling des v0.7.0 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling block-modes v0.8.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling desfire v0.2.0-alpha3 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/desfire/mod.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ChangeApplicationKey` [INFO] [stdout] 6 | pub enum ChangeApplicationKey { [INFO] [stdout] | -------------------- `ChangeApplicationKey` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/iso7816_4/apdustatuswords.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord` [INFO] [stdout] 4 | #[repr(u16)] [INFO] [stdout] 5 | pub enum APDUStatusWord { [INFO] [stdout] | -------------- `APDUStatusWord` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/iso7816_4/apdustatuswords.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord2` [INFO] [stdout] 131 | #[repr(u8)] [INFO] [stdout] 132 | pub enum APDUStatusWord2 { [INFO] [stdout] | --------------- `APDUStatusWord2` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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 4.48s [INFO] running `Command { std: "docker" "inspect" "4734e2539c12be4d5ac464cb29a5f0eca6310f99070e2cda17c3e33bcf9d2ae4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4734e2539c12be4d5ac464cb29a5f0eca6310f99070e2cda17c3e33bcf9d2ae4", kill_on_drop: false }` [INFO] [stdout] 4734e2539c12be4d5ac464cb29a5f0eca6310f99070e2cda17c3e33bcf9d2ae4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed01b630d815eda49048e353e10ecef37c1516872fe442e3b30a6d613212a740 [INFO] running `Command { std: "docker" "start" "-a" "ed01b630d815eda49048e353e10ecef37c1516872fe442e3b30a6d613212a740", kill_on_drop: false }` [INFO] [stderr] Compiling pcsc-sys v1.3.0 [INFO] [stderr] Compiling float-cmp v0.9.0 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling predicates v2.1.5 [INFO] [stderr] Compiling pcsc v2.9.0 [INFO] [stderr] Compiling desfire v0.2.0-alpha3 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/desfire/mod.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ChangeApplicationKey` [INFO] [stdout] 6 | pub enum ChangeApplicationKey { [INFO] [stdout] | -------------------- `ChangeApplicationKey` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/iso7816_4/apdustatuswords.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord` [INFO] [stdout] 4 | #[repr(u16)] [INFO] [stdout] 5 | pub enum APDUStatusWord { [INFO] [stdout] | -------------- `APDUStatusWord` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/iso7816_4/apdustatuswords.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord2` [INFO] [stdout] 131 | #[repr(u8)] [INFO] [stdout] 132 | pub enum APDUStatusWord2 { [INFO] [stdout] | --------------- `APDUStatusWord2` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling mockall v0.11.4 [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/desfire/mod.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ChangeApplicationKey` [INFO] [stdout] 6 | pub enum ChangeApplicationKey { [INFO] [stdout] | -------------------- `ChangeApplicationKey` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/desfire/desfire.rs:1115:9 [INFO] [stdout] | [INFO] [stdout] 1115 | card.connect(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1115 | let _ = card.connect(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/desfire/desfire.rs:1229:9 [INFO] [stdout] | [INFO] [stdout] 1229 | card.connect(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1229 | let _ = card.connect(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/desfire/desfire.rs:1237:9 [INFO] [stdout] | [INFO] [stdout] 1237 | desfire.select_application(0x000000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1237 | let _ = desfire.select_application(0x000000); [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/iso7816_4/apdustatuswords.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord` [INFO] [stdout] 4 | #[repr(u16)] [INFO] [stdout] 5 | pub enum APDUStatusWord { [INFO] [stdout] | -------------- `APDUStatusWord` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/iso7816_4/apdustatuswords.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord2` [INFO] [stdout] 131 | #[repr(u8)] [INFO] [stdout] 132 | pub enum APDUStatusWord2 { [INFO] [stdout] | --------------- `APDUStatusWord2` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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 4.76s [INFO] running `Command { std: "docker" "inspect" "ed01b630d815eda49048e353e10ecef37c1516872fe442e3b30a6d613212a740", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed01b630d815eda49048e353e10ecef37c1516872fe442e3b30a6d613212a740", kill_on_drop: false }` [INFO] [stdout] ed01b630d815eda49048e353e10ecef37c1516872fe442e3b30a6d613212a740 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a9a87b1aaba3106868e104404de29c6dcac51e7c89fe3df807704271ad6f05d7 [INFO] running `Command { std: "docker" "start" "-a" "a9a87b1aaba3106868e104404de29c6dcac51e7c89fe3df807704271ad6f05d7", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/desfire/mod.rs:5:23 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Clone, Copy, FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ChangeApplicationKey` [INFO] [stderr] 6 | pub enum ChangeApplicationKey { [INFO] [stderr] | -------------------- `ChangeApplicationKey` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/iso7816_4/apdustatuswords.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord` [INFO] [stderr] 4 | #[repr(u16)] [INFO] [stderr] 5 | pub enum APDUStatusWord { [INFO] [stderr] | -------------- `APDUStatusWord` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/iso7816_4/apdustatuswords.rs:130:10 [INFO] [stderr] | [INFO] [stderr] 130 | #[derive(FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_APDUStatusWord2` [INFO] [stderr] 131 | #[repr(u8)] [INFO] [stderr] 132 | pub enum APDUStatusWord2 { [INFO] [stderr] | --------------- `APDUStatusWord2` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/desfire/desfire.rs:1115:9 [INFO] [stderr] | [INFO] [stderr] 1115 | card.connect(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 1115 | let _ = card.connect(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/desfire/desfire.rs:1229:9 [INFO] [stderr] | [INFO] [stderr] 1229 | card.connect(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 1229 | let _ = card.connect(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/desfire/desfire.rs:1237:9 [INFO] [stderr] | [INFO] [stderr] 1237 | desfire.select_application(0x000000); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 1237 | let _ = desfire.select_application(0x000000); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `desfire` (lib) generated 3 warnings [INFO] [stderr] warning: `desfire` (lib test) generated 6 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/desfire-4964347c720eb7bd) [INFO] [stdout] [INFO] [stdout] running 46 tests [INFO] [stdout] test crypto::cipher::tdes::tests::encrypt ... ignored [INFO] [stdout] test crypto::cipher::tdes_2k::tests::encrypt ... ignored [INFO] [stdout] test crypto::cipher::tdes_3k::tests::encrypt ... ignored [INFO] [stdout] test crypto::crc::crc16::tests::calculate ... ignored [INFO] [stdout] test crypto::crc::crc32::tests::calculate ... ok [INFO] [stdout] test crypto::cipher::aes::tests::encrypt ... ok [INFO] [stdout] test desfire::desfire::tests::authenticate_des_hardware ... ignored [INFO] [stdout] test desfire::desfire::tests::authenticate_aes ... ok [INFO] [stdout] test desfire::desfire::tests::authenticate_des ... ok [INFO] [stdout] test desfire::desfire::tests::change_other_key_aes ... ok [INFO] [stdout] test desfire::desfire::tests::change_key_aes ... ok [INFO] [stdout] test desfire::desfire::tests::create_application ... ok [INFO] [stdout] test desfire::desfire::tests::create_file_standard ... ok [INFO] [stdout] test desfire::desfire::tests::format_picc ... ok [INFO] [stdout] test desfire::desfire::tests::generate_file_accessrights ... ok [INFO] [stdout] test desfire::desfire::tests::generate_key_setting1 ... ok [INFO] [stdout] test desfire::desfire::tests::generate_key_setting1_changekey ... ok [INFO] [stdout] test desfire::desfire::tests::generate_key_setting2 ... ok [INFO] [stdout] test desfire::desfire::tests::generate_sessionkey_aes ... ok [INFO] [stdout] test desfire::desfire::tests::get_application_ids ... ok [INFO] [stdout] test desfire::desfire::tests::read_data_cmac ... ok [INFO] [stdout] test desfire::desfire::tests::select_application_hardware ... ignored [INFO] [stdout] test desfire::desfire::tests::select_application ... ok [INFO] [stdout] test desfire::desfire::tests::read_data_long ... ok [INFO] [stdout] test desfire::desfire::tests::write_data ... ok [INFO] [stdout] test desfire::desfire::tests::read_data ... ok [INFO] [stdout] test desfire::desfire::tests::write_data_long ... ok [INFO] [stdout] test desfire::desfire::tests::generate_sessionkey_des ... ok [INFO] [stdout] test iso7816_4::apducommand::tests::compare ... ok [INFO] [stdout] test iso7816_4::apducommand::tests::compare_diff ... ok [INFO] [stdout] test iso7816_4::apducommand::tests::to_string_case1 ... ok [INFO] [stdout] test iso7816_4::apducommand::tests::to_string_case2 ... ok [INFO] [stdout] test iso7816_4::apducommand::tests::to_string_case3 ... ok [INFO] [stdout] test iso7816_4::apducommand::tests::to_string_case4 ... ok [INFO] [stdout] test desfire::desfire::tests::authenticate_des_invalid_keyno - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::authenticate_aes_invalid_keyno - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::change_key_aes_invalid_keyno - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::change_other_key_aes_invalid_keyno - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::create_application_invalid_aid - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::create_file_standard_invalid_file_id - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::generate_file_accessrights_outofrange - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::generate_key_setting1_invalid_keyid - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::generate_key_setting2_wrong_num_keys - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::select_application_invalidaid - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::write_data_invalid_file_id - should panic ... ok [INFO] [stdout] test desfire::desfire::tests::read_data_invalid_file_id - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 40 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] Doc-tests desfire [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a9a87b1aaba3106868e104404de29c6dcac51e7c89fe3df807704271ad6f05d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9a87b1aaba3106868e104404de29c6dcac51e7c89fe3df807704271ad6f05d7", kill_on_drop: false }` [INFO] [stdout] a9a87b1aaba3106868e104404de29c6dcac51e7c89fe3df807704271ad6f05d7