[INFO] fetching crate usbip 0.7.1... [INFO] testing usbip-0.7.1 against 1.90.0 for beta-1.91-3 [INFO] extracting crate usbip 0.7.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate usbip 0.7.1 [INFO] finished tweaking crates.io crate usbip 0.7.1 [INFO] tweaked toml for crates.io crate usbip 0.7.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate usbip 0.7.1 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate usbip 0.7.1 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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-derive v0.3.3 [INFO] [stderr] Downloaded rusb v0.9.3 [INFO] [stderr] Downloaded serde v1.0.156 [INFO] [stderr] Downloaded serde_derive v1.0.156 [INFO] [stderr] Downloaded cc v1.0.77 [INFO] [stderr] Downloaded aho-corasick v0.7.20 [INFO] [stderr] Downloaded syn v1.0.105 [INFO] [stderr] Downloaded libusb1-sys v0.6.4 [INFO] [stderr] Downloaded regex v1.7.0 [INFO] [stderr] Downloaded tokio v1.22.0 [INFO] [stderr] Downloaded libc v0.2.138 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e0c3f4a5a007b179996a7bc9e486fee6d02e9e8d35c0158af748c6211e395b98 [INFO] running `Command { std: "docker" "start" "-a" "e0c3f4a5a007b179996a7bc9e486fee6d02e9e8d35c0158af748c6211e395b98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e0c3f4a5a007b179996a7bc9e486fee6d02e9e8d35c0158af748c6211e395b98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0c3f4a5a007b179996a7bc9e486fee6d02e9e8d35c0158af748c6211e395b98", kill_on_drop: false }` [INFO] [stdout] e0c3f4a5a007b179996a7bc9e486fee6d02e9e8d35c0158af748c6211e395b98 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd39ceb5d6c46e4f935463f005d8f705df5d54800fd3de3413b871bc23b29852 [INFO] running `Command { std: "docker" "start" "-a" "dd39ceb5d6c46e4f935463f005d8f705df5d54800fd3de3413b871bc23b29852", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling cc v1.0.77 [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling tokio v1.22.0 [INFO] [stderr] Compiling rusb v0.9.3 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling libusb1-sys v0.6.4 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling usbip v0.7.1 (/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/consts.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Copy, Clone, Debug, 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_EndpointAttributes` [INFO] [stdout] 47 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 48 | pub enum EndpointAttributes { [INFO] [stdout] | ------------------ `EndpointAttributes` 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/consts.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Copy, Clone, Debug, 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_StandardRequest` [INFO] [stdout] 65 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 66 | pub enum StandardRequest { [INFO] [stdout] | --------------- `StandardRequest` 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/consts.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(Copy, Clone, Debug, 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_DescriptorType` [INFO] [stdout] 83 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 84 | pub enum DescriptorType { [INFO] [stdout] | -------------- `DescriptorType` 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/hid.rs:164:30 [INFO] [stdout] | [INFO] [stdout] 164 | #[derive(Copy, Clone, Debug, 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_HidDescriptorType` [INFO] [stdout] 165 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 166 | pub enum HidDescriptorType { [INFO] [stdout] | ----------------- `HidDescriptorType` 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 15.32s [INFO] running `Command { std: "docker" "inspect" "dd39ceb5d6c46e4f935463f005d8f705df5d54800fd3de3413b871bc23b29852", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd39ceb5d6c46e4f935463f005d8f705df5d54800fd3de3413b871bc23b29852", kill_on_drop: false }` [INFO] [stdout] dd39ceb5d6c46e4f935463f005d8f705df5d54800fd3de3413b871bc23b29852 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7cdf8555adf55d6d2dbb4e1ec9a3a67adaa6a18f89c7f42f07f9ff3c87c10199 [INFO] running `Command { std: "docker" "start" "-a" "7cdf8555adf55d6d2dbb4e1ec9a3a67adaa6a18f89c7f42f07f9ff3c87c10199", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling parking_lot_core v0.9.5 [INFO] [stderr] Compiling tokio v1.22.0 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.14.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling usbip v0.7.1 (/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/consts.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Copy, Clone, Debug, 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_EndpointAttributes` [INFO] [stdout] 47 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 48 | pub enum EndpointAttributes { [INFO] [stdout] | ------------------ `EndpointAttributes` 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/consts.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Copy, Clone, Debug, 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_StandardRequest` [INFO] [stdout] 65 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 66 | pub enum StandardRequest { [INFO] [stdout] | --------------- `StandardRequest` 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/consts.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(Copy, Clone, Debug, 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_DescriptorType` [INFO] [stdout] 83 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 84 | pub enum DescriptorType { [INFO] [stdout] | -------------- `DescriptorType` 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/hid.rs:164:30 [INFO] [stdout] | [INFO] [stdout] 164 | #[derive(Copy, Clone, Debug, 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_HidDescriptorType` [INFO] [stdout] 165 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 166 | pub enum HidDescriptorType { [INFO] [stdout] | ----------------- `HidDescriptorType` 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/consts.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Copy, Clone, Debug, 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_EndpointAttributes` [INFO] [stdout] 47 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 48 | pub enum EndpointAttributes { [INFO] [stdout] | ------------------ `EndpointAttributes` 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/consts.rs:64:30 [INFO] [stdout] | [INFO] [stdout] 64 | #[derive(Copy, Clone, Debug, 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_StandardRequest` [INFO] [stdout] 65 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 66 | pub enum StandardRequest { [INFO] [stdout] | --------------- `StandardRequest` 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/consts.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(Copy, Clone, Debug, 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_DescriptorType` [INFO] [stdout] 83 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 84 | pub enum DescriptorType { [INFO] [stdout] | -------------- `DescriptorType` 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/hid.rs:164:30 [INFO] [stdout] | [INFO] [stdout] 164 | #[derive(Copy, Clone, Debug, 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_HidDescriptorType` [INFO] [stdout] 165 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stdout] 166 | pub enum HidDescriptorType { [INFO] [stdout] | ----------------- `HidDescriptorType` 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 27.34s [INFO] running `Command { std: "docker" "inspect" "7cdf8555adf55d6d2dbb4e1ec9a3a67adaa6a18f89c7f42f07f9ff3c87c10199", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cdf8555adf55d6d2dbb4e1ec9a3a67adaa6a18f89c7f42f07f9ff3c87c10199", kill_on_drop: false }` [INFO] [stdout] 7cdf8555adf55d6d2dbb4e1ec9a3a67adaa6a18f89c7f42f07f9ff3c87c10199 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 73a683b2b5246db7b813d13c054e8a4e1d22b1af899eda3eefc64aaf2aa43824 [INFO] running `Command { std: "docker" "start" "-a" "73a683b2b5246db7b813d13c054e8a4e1d22b1af899eda3eefc64aaf2aa43824", 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/consts.rs:46:30 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Copy, Clone, Debug, 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_EndpointAttributes` [INFO] [stderr] 47 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stderr] 48 | pub enum EndpointAttributes { [INFO] [stderr] | ------------------ `EndpointAttributes` 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/consts.rs:64:30 [INFO] [stderr] | [INFO] [stderr] 64 | #[derive(Copy, Clone, Debug, 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_StandardRequest` [INFO] [stderr] 65 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stderr] 66 | pub enum StandardRequest { [INFO] [stderr] | --------------- `StandardRequest` 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/consts.rs:82:30 [INFO] [stderr] | [INFO] [stderr] 82 | #[derive(Copy, Clone, Debug, 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_DescriptorType` [INFO] [stderr] 83 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stderr] 84 | pub enum DescriptorType { [INFO] [stderr] | -------------- `DescriptorType` 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/hid.rs:164:30 [INFO] [stderr] | [INFO] [stderr] 164 | #[derive(Copy, Clone, Debug, 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_HidDescriptorType` [INFO] [stderr] 165 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] [INFO] [stderr] 166 | pub enum HidDescriptorType { [INFO] [stderr] | ----------------- `HidDescriptorType` 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: `usbip` (lib) generated 4 warnings [INFO] [stderr] warning: `usbip` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/usbip-970bed7359c3eb11) [INFO] [stdout] [INFO] [stdout] running 28 tests [INFO] [stdout] test cdc::tests::desc_verify ... ok [INFO] [stdout] test device::test::test_set_string_descriptors ... ok [INFO] [stdout] test tests::add_and_remove_10_devices ... ok [INFO] [stdout] test tests::only_single_connection_allowed_to_device ... ok [INFO] [stdout] test hid::tests::desc_verify ... ok [INFO] [stdout] test device::test::test_invalid_string_index ... ok [INFO] [stdout] test tests::req_empty_devlist ... ok [INFO] [stdout] test tests::req_import ... ok [INFO] [stdout] test tests::req_sample_devlist ... ok [INFO] [stdout] test tests::req_import_get_device_desc ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialization_fails_on_old_usbip_version ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialization_fails_on_invalid_command ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_op_req_import ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_op_rep_import ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_op_req_devlist ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_usbip_cmd_unlink ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_usbip_cmd_submit ... ok [INFO] [stdout] test usbip_protocol::tests::read_op_req_devlist_from_socket ... ok [INFO] [stdout] test usbip_protocol::tests::read_op_req_import_from_socket ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_op_rep_devlist ... ok [INFO] [stdout] test usbip_protocol::tests::read_usbip_cmd_submit_from_socket ... ok [INFO] [stdout] test usbip_protocol::tests::read_usbip_cmd_unlink_from_socket ... ok [INFO] [stdout] test usbip_protocol::tests::read_usbip_cmd_submit_from_socket_with_no_data ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_usbip_ret_submit ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_usbip_ret_unlink ... ok [INFO] [stdout] test tests::device_gets_released_on_closed_socket ... ok [INFO] [stdout] test usbip_protocol::tests::byte_serialize_invalid_usbip_ret_submit - should panic ... ok [INFO] [stderr] Doc-tests usbip [INFO] [stdout] test tests::send_usb_traffic_while_adding_and_removing_devices ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 28 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/device.rs - device::UsbDeviceHandler::as_any (line 488) ... ignored [INFO] [stdout] test src/interface.rs - interface::UsbInterfaceHandler::as_any (line 39) ... ignored [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "73a683b2b5246db7b813d13c054e8a4e1d22b1af899eda3eefc64aaf2aa43824", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73a683b2b5246db7b813d13c054e8a4e1d22b1af899eda3eefc64aaf2aa43824", kill_on_drop: false }` [INFO] [stdout] 73a683b2b5246db7b813d13c054e8a4e1d22b1af899eda3eefc64aaf2aa43824