[INFO] fetching crate cancellation 0.1.0... [INFO] checking cancellation-0.1.0 against master#75530e9f72a1990ed2305e16fd51d02f47048f12 for pr-138676 [INFO] extracting crate cancellation 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate cancellation 0.1.0 on toolchain 75530e9f72a1990ed2305e16fd51d02f47048f12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cancellation 0.1.0 [INFO] finished tweaking crates.io crate cancellation 0.1.0 [INFO] tweaked toml for crates.io crate cancellation 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca1bf2a84f8c36543b9926116e8c6e00674dcf39c51a0536a091a8a0a25e6da5 [INFO] running `Command { std: "docker" "start" "-a" "ca1bf2a84f8c36543b9926116e8c6e00674dcf39c51a0536a091a8a0a25e6da5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca1bf2a84f8c36543b9926116e8c6e00674dcf39c51a0536a091a8a0a25e6da5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca1bf2a84f8c36543b9926116e8c6e00674dcf39c51a0536a091a8a0a25e6da5", kill_on_drop: false }` [INFO] [stdout] ca1bf2a84f8c36543b9926116e8c6e00674dcf39c51a0536a091a8a0a25e6da5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f2cfe3cd969111234df9c2fa7ba91e09575284d08ccb07f08d16ac322c67d17c [INFO] running `Command { std: "docker" "start" "-a" "f2cfe3cd969111234df9c2fa7ba91e09575284d08ccb07f08d16ac322c67d17c", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking cancellation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> lib.rs:97:38 [INFO] [stdout] | [INFO] [stdout] 97 | use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> lib.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | status: ATOMIC_USIZE_INIT, //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 135 - status: ATOMIC_USIZE_INIT, //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stdout] 135 + status: AtomicUsize::new(0), //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> lib.rs:418:35 [INFO] [stdout] | [INFO] [stdout] 418 | f.write_str(error::Error::description(self)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | on_cancel: &'a mut (FnOnceOption + Send + 'a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 161 | on_cancel: &'a mut (dyn FnOnceOption + Send + 'a), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> lib.rs:97:38 [INFO] [stdout] | [INFO] [stdout] 97 | use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> lib.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | status: ATOMIC_USIZE_INIT, //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 135 - status: ATOMIC_USIZE_INIT, //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stdout] 135 + status: AtomicUsize::new(0), //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> lib.rs:418:35 [INFO] [stdout] | [INFO] [stdout] 418 | f.write_str(error::Error::description(self)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | on_cancel: &'a mut (FnOnceOption + Send + 'a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 161 | on_cancel: &'a mut (dyn FnOnceOption + Send + 'a), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib.rs:330:37 [INFO] [stdout] | [INFO] [stdout] 330 | on_cancel: &'a mut (FnOnceOption + Send + 'a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 330 | on_cancel: &'a mut (dyn FnOnceOption + Send + 'a), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> lib.rs:330:37 [INFO] [stdout] | [INFO] [stdout] 330 | on_cancel: &'a mut (FnOnceOption + Send + 'a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 330 | on_cancel: &'a mut (dyn FnOnceOption + Send + 'a), [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] --> lib.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 318 | / pub fn run(&self, on_cancel: C, f: F) -> R [INFO] [stdout] 319 | | where C: FnOnce() + Send, [INFO] [stdout] 320 | | F: FnOnce() -> R [INFO] [stdout] | |______________________________- move the `impl` block outside of this method `run` [INFO] [stdout] ... [INFO] [stdout] 380 | impl <'a> Drop for Registration<'a> { [INFO] [stdout] | ^^^^^^^^^^----^^^^^------------^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Registration` is not local [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | [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: `#[warn(non_local_definitions)]` 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] --> lib.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 318 | / pub fn run(&self, on_cancel: C, f: F) -> R [INFO] [stdout] 319 | | where C: FnOnce() + Send, [INFO] [stdout] 320 | | F: FnOnce() -> R [INFO] [stdout] | |______________________________- move the `impl` block outside of this method `run` [INFO] [stdout] ... [INFO] [stdout] 380 | impl <'a> Drop for Registration<'a> { [INFO] [stdout] | ^^^^^^^^^^----^^^^^------------^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Registration` is not local [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | [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: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "f2cfe3cd969111234df9c2fa7ba91e09575284d08ccb07f08d16ac322c67d17c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2cfe3cd969111234df9c2fa7ba91e09575284d08ccb07f08d16ac322c67d17c", kill_on_drop: false }` [INFO] [stdout] f2cfe3cd969111234df9c2fa7ba91e09575284d08ccb07f08d16ac322c67d17c