[INFO] fetching crate cancellation 0.1.0... [INFO] testing cancellation-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate cancellation 0.1.0 into /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cancellation 0.1.0 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] 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] 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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 75598e0930309817eb71037ba6fcfc84e9180ab87baef97433c21856741600b4 [INFO] running `Command { std: "docker" "start" "-a" "75598e0930309817eb71037ba6fcfc84e9180ab87baef97433c21856741600b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75598e0930309817eb71037ba6fcfc84e9180ab87baef97433c21856741600b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75598e0930309817eb71037ba6fcfc84e9180ab87baef97433c21856741600b4", kill_on_drop: false }` [INFO] [stdout] 75598e0930309817eb71037ba6fcfc84e9180ab87baef97433c21856741600b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] b5916030e9fd5a75ff17d96ea98ab9b7a70b910275aa3160574afff33c781bc8 [INFO] running `Command { std: "docker" "start" "-a" "b5916030e9fd5a75ff17d96ea98ab9b7a70b910275aa3160574afff33c781bc8", 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.24s [INFO] running `Command { std: "docker" "inspect" "b5916030e9fd5a75ff17d96ea98ab9b7a70b910275aa3160574afff33c781bc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5916030e9fd5a75ff17d96ea98ab9b7a70b910275aa3160574afff33c781bc8", kill_on_drop: false }` [INFO] [stdout] b5916030e9fd5a75ff17d96ea98ab9b7a70b910275aa3160574afff33c781bc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] a1c09fa8edcbf6e78b258673bb5bcd1de0278cd95dfcf7bdfca3840f829053af [INFO] running `Command { std: "docker" "start" "-a" "a1c09fa8edcbf6e78b258673bb5bcd1de0278cd95dfcf7bdfca3840f829053af", 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] [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.53s [INFO] running `Command { std: "docker" "inspect" "a1c09fa8edcbf6e78b258673bb5bcd1de0278cd95dfcf7bdfca3840f829053af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1c09fa8edcbf6e78b258673bb5bcd1de0278cd95dfcf7bdfca3840f829053af", kill_on_drop: false }` [INFO] [stdout] a1c09fa8edcbf6e78b258673bb5bcd1de0278cd95dfcf7bdfca3840f829053af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] a636a9271e6d38e322ab6b7da8fe5eac9da7f411236fc15a663c941d7957092f [INFO] running `Command { std: "docker" "start" "-a" "a636a9271e6d38e322ab6b7da8fe5eac9da7f411236fc15a663c941d7957092f", 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.03s [INFO] [stderr] Running unittests lib.rs (/opt/rustwide/target/debug/deps/cancellation-c6043823b7ffb08e) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test test::none_not_canceled ... ok [INFO] [stdout] test test::none_run ... ok [INFO] [stdout] test test::cancel ... ok [INFO] [stdout] test test::on_cancel_is_not_called_after_end_of_run ... ok [INFO] [stdout] test test::recursive_run_already_canceled ... ok [INFO] [stdout] test test::cancel_in_recursive_run ... ok [INFO] [stdout] test test::run_already_canceled ... 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] [stderr] Doc-tests cancellation [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.45s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a636a9271e6d38e322ab6b7da8fe5eac9da7f411236fc15a663c941d7957092f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a636a9271e6d38e322ab6b7da8fe5eac9da7f411236fc15a663c941d7957092f", kill_on_drop: false }` [INFO] [stdout] a636a9271e6d38e322ab6b7da8fe5eac9da7f411236fc15a663c941d7957092f