[INFO] fetching crate cancellation 0.1.0... [INFO] testing cancellation-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate cancellation 0.1.0 into /workspace/builds/worker-1-tc1/source [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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cancellation 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fbaa8da0424063b34c8a4421e6cc485aaeea862a66dbb1113a4a029e2bf43d92 [INFO] running `Command { std: "docker" "start" "-a" "fbaa8da0424063b34c8a4421e6cc485aaeea862a66dbb1113a4a029e2bf43d92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fbaa8da0424063b34c8a4421e6cc485aaeea862a66dbb1113a4a029e2bf43d92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbaa8da0424063b34c8a4421e6cc485aaeea862a66dbb1113a4a029e2bf43d92", kill_on_drop: false }` [INFO] [stdout] fbaa8da0424063b34c8a4421e6cc485aaeea862a66dbb1113a4a029e2bf43d92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 17a21f28026fee28054ef6ddf73763446dd9c2b269abfb5141c720dd9c911e26 [INFO] running `Command { std: "docker" "start" "-a" "17a21f28026fee28054ef6ddf73763446dd9c2b269abfb5141c720dd9c911e26", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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)]` (part of `#[warn(rust_2021_compatibility)]`) 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: 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.33s [INFO] running `Command { std: "docker" "inspect" "17a21f28026fee28054ef6ddf73763446dd9c2b269abfb5141c720dd9c911e26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17a21f28026fee28054ef6ddf73763446dd9c2b269abfb5141c720dd9c911e26", kill_on_drop: false }` [INFO] [stdout] 17a21f28026fee28054ef6ddf73763446dd9c2b269abfb5141c720dd9c911e26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c159b7e002106b3653cbf768897c69b525f8b6d06a7ffdfe16c3e13dab296518 [INFO] running `Command { std: "docker" "start" "-a" "c159b7e002106b3653cbf768897c69b525f8b6d06a7ffdfe16c3e13dab296518", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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] [stderr] Compiling 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: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)]` (part of `#[warn(rust_2021_compatibility)]`) 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: 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: 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)]` (part of `#[warn(rust_2021_compatibility)]`) 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: 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 `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "c159b7e002106b3653cbf768897c69b525f8b6d06a7ffdfe16c3e13dab296518", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c159b7e002106b3653cbf768897c69b525f8b6d06a7ffdfe16c3e13dab296518", kill_on_drop: false }` [INFO] [stdout] c159b7e002106b3653cbf768897c69b525f8b6d06a7ffdfe16c3e13dab296518 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bc1bd097758265a61c1442df30859d4c0f3e092c668cbf72eba9abc4c778d9a9 [INFO] running `Command { std: "docker" "start" "-a" "bc1bd097758265a61c1442df30859d4c0f3e092c668cbf72eba9abc4c778d9a9", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stderr] --> lib.rs:97:38 [INFO] [stderr] | [INFO] [stderr] 97 | use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stderr] --> lib.rs:135:13 [INFO] [stderr] | [INFO] [stderr] 135 | status: ATOMIC_USIZE_INIT, //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: replace the use of the deprecated constant [INFO] [stderr] | [INFO] [stderr] 135 - status: ATOMIC_USIZE_INIT, //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stderr] 135 + status: AtomicUsize::new(0), //AtomicUsize::new(STATUS_CANNOT_BE_CANCELED), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> lib.rs:418:35 [INFO] [stderr] | [INFO] [stderr] 418 | f.write_str(error::Error::description(self)) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib.rs:161:25 [INFO] [stderr] | [INFO] [stderr] 161 | on_cancel: &'a mut (FnOnceOption + Send + 'a), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 161 | on_cancel: &'a mut (dyn FnOnceOption + Send + 'a), [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> lib.rs:330:37 [INFO] [stderr] | [INFO] [stderr] 330 | on_cancel: &'a mut (FnOnceOption + Send + 'a), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 330 | on_cancel: &'a mut (dyn FnOnceOption + Send + 'a), [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> lib.rs:380:9 [INFO] [stderr] | [INFO] [stderr] 318 | / pub fn run(&self, on_cancel: C, f: F) -> R [INFO] [stderr] 319 | | where C: FnOnce() + Send, [INFO] [stderr] 320 | | F: FnOnce() -> R [INFO] [stderr] | |______________________________- move the `impl` block outside of this method `run` [INFO] [stderr] ... [INFO] [stderr] 380 | impl <'a> Drop for Registration<'a> { [INFO] [stderr] | ^^^^^^^^^^----^^^^^------------^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `Registration` is not local [INFO] [stderr] | `Drop` is not local [INFO] [stderr] | [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: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `cancellation` (lib) generated 6 warnings (run `cargo fix --lib -p cancellation` to apply 3 suggestions) [INFO] [stderr] warning: `cancellation` (lib test) generated 6 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests lib.rs (/opt/rustwide/target/debug/deps/cancellation-c6043823b7ffb08e) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test test::cancel ... ok [INFO] [stdout] test test::none_run ... ok [INFO] [stdout] test test::cancel_in_recursive_run ... ok [INFO] [stdout] test test::none_not_canceled ... ok [INFO] [stdout] test test::recursive_run_already_canceled ... ok [INFO] [stdout] test test::run_already_canceled ... ok [INFO] [stderr] Doc-tests cancellation [INFO] [stdout] test test::on_cancel_is_not_called_after_end_of_run ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test lib.rs - (line 58) ... ok [INFO] [stdout] test lib.rs - (line 33) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.28s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "bc1bd097758265a61c1442df30859d4c0f3e092c668cbf72eba9abc4c778d9a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc1bd097758265a61c1442df30859d4c0f3e092c668cbf72eba9abc4c778d9a9", kill_on_drop: false }` [INFO] [stdout] bc1bd097758265a61c1442df30859d4c0f3e092c668cbf72eba9abc4c778d9a9