[INFO] fetching crate pravega-client-shared 0.3.7... [INFO] checking pravega-client-shared-0.3.7 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate pravega-client-shared 0.3.7 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate pravega-client-shared 0.3.7 [INFO] finished tweaking crates.io crate pravega-client-shared 0.3.7 [INFO] tweaked toml for crates.io crate pravega-client-shared 0.3.7 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate pravega-client-shared 0.3.7 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 97 packages to latest compatible versions [INFO] [stderr] Adding bytes v0.4.12 (available: v1.10.1) [INFO] [stderr] Adding derive-new v0.5.9 (available: v0.7.0) [INFO] [stderr] Adding derive_more v0.99.20 (available: v2.0.1) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding ordered-float v2.10.1 (available: v5.1.0) [INFO] [stderr] Adding snafu v0.6.10 (available: v0.8.9) [INFO] [stderr] Adding tokio-rustls v0.22.0 (available: v0.26.4) [INFO] [stderr] Adding uuid v0.8.2 (available: v1.18.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 146138eb5fbe768e1ebcad32c9a0ea98bed422167a57e763d06eccdead1e9b1d [INFO] running `Command { std: "docker" "start" "-a" "146138eb5fbe768e1ebcad32c9a0ea98bed422167a57e763d06eccdead1e9b1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "146138eb5fbe768e1ebcad32c9a0ea98bed422167a57e763d06eccdead1e9b1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "146138eb5fbe768e1ebcad32c9a0ea98bed422167a57e763d06eccdead1e9b1d", kill_on_drop: false }` [INFO] [stdout] 146138eb5fbe768e1ebcad32c9a0ea98bed422167a57e763d06eccdead1e9b1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c12623de70047406d5c59deb81f7973d6338b8a389c30a643e77b534c3e6efb [INFO] running `Command { std: "docker" "start" "-a" "6c12623de70047406d5c59deb81f7973d6338b8a389c30a643e77b534c3e6efb", kill_on_drop: false }` [INFO] [stderr] Compiling doc-comment v0.3.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Compiling derive-new v0.5.9 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking murmurhash3 v0.0.5 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking ordered-float v2.10.1 [INFO] [stderr] Checking sized-chunks v0.6.5 [INFO] [stderr] Compiling shrinkwraprs v0.3.0 [INFO] [stderr] Checking snafu v0.6.10 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking pravega-client-shared v0.3.7 (/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/lib.rs:444:45 [INFO] [stdout] | [INFO] [stdout] 444 | #[derive(Debug, Clone, Hash, PartialEq, Eq, 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_ScaleType` [INFO] [stdout] 445 | pub enum ScaleType { [INFO] [stdout] | --------- `ScaleType` 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/lib.rs:470:45 [INFO] [stdout] | [INFO] [stdout] 470 | #[derive(Debug, Clone, Hash, PartialEq, Eq, 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_RetentionType` [INFO] [stdout] 471 | pub enum RetentionType { [INFO] [stdout] | ------------- `RetentionType` 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] error: this type will no longer be must used: Result [INFO] [stdout] --> src/lib.rs:555:29 [INFO] [stdout] | [INFO] [stdout] 555 | let segment_str = &*name[PREFIX_LENGTH..PREFIX_LENGTH + segment_name_length] [INFO] [stdout] | _____________________________^ [INFO] [stdout] 556 | | .parse::() [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/lib.rs:561:27 [INFO] [stdout] | [INFO] [stdout] 561 | let rest_string = name[PREFIX_LENGTH + segment_name_length..] [INFO] [stdout] | ___________________________^ [INFO] [stdout] 562 | | .parse::() [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:444:45 [INFO] [stdout] | [INFO] [stdout] 444 | #[derive(Debug, Clone, Hash, PartialEq, Eq, 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_ScaleType` [INFO] [stdout] 445 | pub enum ScaleType { [INFO] [stdout] | --------- `ScaleType` 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/lib.rs:470:45 [INFO] [stdout] | [INFO] [stdout] 470 | #[derive(Debug, Clone, Hash, PartialEq, Eq, 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_RetentionType` [INFO] [stdout] 471 | pub enum RetentionType { [INFO] [stdout] | ------------- `RetentionType` 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] error: this type will no longer be must used: Result [INFO] [stdout] --> src/lib.rs:555:29 [INFO] [stdout] | [INFO] [stdout] 555 | let segment_str = &*name[PREFIX_LENGTH..PREFIX_LENGTH + segment_name_length] [INFO] [stdout] | _____________________________^ [INFO] [stdout] 556 | | .parse::() [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/lib.rs:561:27 [INFO] [stdout] | [INFO] [stdout] 561 | let rest_string = name[PREFIX_LENGTH + segment_name_length..] [INFO] [stdout] | ___________________________^ [INFO] [stdout] 562 | | .parse::() [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `pravega-client-shared` (lib test) due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `pravega-client-shared` (lib) due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6c12623de70047406d5c59deb81f7973d6338b8a389c30a643e77b534c3e6efb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c12623de70047406d5c59deb81f7973d6338b8a389c30a643e77b534c3e6efb", kill_on_drop: false }` [INFO] [stdout] 6c12623de70047406d5c59deb81f7973d6338b8a389c30a643e77b534c3e6efb