[INFO] fetching crate cancellation 0.1.0... [INFO] testing cancellation-0.1.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [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 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06363aac63feecffa7014edf313f7e5b501a36e432887978f397b14d3ec94b11 [INFO] running `Command { std: "docker" "start" "-a" "06363aac63feecffa7014edf313f7e5b501a36e432887978f397b14d3ec94b11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06363aac63feecffa7014edf313f7e5b501a36e432887978f397b14d3ec94b11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06363aac63feecffa7014edf313f7e5b501a36e432887978f397b14d3ec94b11", kill_on_drop: false }` [INFO] [stdout] 06363aac63feecffa7014edf313f7e5b501a36e432887978f397b14d3ec94b11 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 0c895a2ca18c99657a5cb20ca677fd2150fc6d1d5d0c6a7d29289cdb224c709f [INFO] running `Command { std: "docker" "start" "-a" "0c895a2ca18c99657a5cb20ca677fd2150fc6d1d5d0c6a7d29289cdb224c709f", 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)]` 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.30s [INFO] running `Command { std: "docker" "inspect" "0c895a2ca18c99657a5cb20ca677fd2150fc6d1d5d0c6a7d29289cdb224c709f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c895a2ca18c99657a5cb20ca677fd2150fc6d1d5d0c6a7d29289cdb224c709f", kill_on_drop: false }` [INFO] [stdout] 0c895a2ca18c99657a5cb20ca677fd2150fc6d1d5d0c6a7d29289cdb224c709f [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 98d306683c7347d8780b0b4257508edf7a27efcb8958a13a58fa7e4a5d733330 [INFO] running `Command { std: "docker" "start" "-a" "98d306683c7347d8780b0b4257508edf7a27efcb8958a13a58fa7e4a5d733330", 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] [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] [stderr] Compiling cancellation v0.1.0 (/opt/rustwide/workdir) [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)]` 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.51s [INFO] running `Command { std: "docker" "inspect" "98d306683c7347d8780b0b4257508edf7a27efcb8958a13a58fa7e4a5d733330", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98d306683c7347d8780b0b4257508edf7a27efcb8958a13a58fa7e4a5d733330", kill_on_drop: false }` [INFO] [stdout] 98d306683c7347d8780b0b4257508edf7a27efcb8958a13a58fa7e4a5d733330 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 3c10599726c9dafc04dea4a2a867ac2496959edb383831ef849dbe2055d9c1fd [INFO] running `Command { std: "docker" "start" "-a" "3c10599726c9dafc04dea4a2a867ac2496959edb383831ef849dbe2055d9c1fd", 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)]` 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/x86_64-unknown-linux-musl/debug/deps/cancellation-6e48ec58166c1d2d) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test test::cancel ... ok [INFO] [stdout] test test::cancel_in_recursive_run ... ok [INFO] [stdout] test test::none_not_canceled ... ok [INFO] [stdout] test test::none_run ... 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::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.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3c10599726c9dafc04dea4a2a867ac2496959edb383831ef849dbe2055d9c1fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c10599726c9dafc04dea4a2a867ac2496959edb383831ef849dbe2055d9c1fd", kill_on_drop: false }` [INFO] [stdout] 3c10599726c9dafc04dea4a2a867ac2496959edb383831ef849dbe2055d9c1fd