[INFO] fetching crate cancellation 0.1.0...
[INFO] checking cancellation-0.1.0 against master#80399064afa4a2cd153f30d02c25f7ea0383ed65 for opaque-soundness-fix
[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 80399064afa4a2cd153f30d02c25f7ea0383ed65
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "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" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "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" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cc1a3c7da0d1fabd4ba9348e656d2a7a2fde86e4dae4893213215bc1fb4469f6
[INFO] running `Command { std: "docker" "start" "-a" "cc1a3c7da0d1fabd4ba9348e656d2a7a2fde86e4dae4893213215bc1fb4469f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cc1a3c7da0d1fabd4ba9348e656d2a7a2fde86e4dae4893213215bc1fb4469f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc1a3c7da0d1fabd4ba9348e656d2a7a2fde86e4dae4893213215bc1fb4469f6", kill_on_drop: false }`
[INFO] [stdout] cc1a3c7da0d1fabd4ba9348e656d2a7a2fde86e4dae4893213215bc1fb4469f6
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3773233c0bf433433cae61abd54a5b27d5867482767f2e147597495aca7f8770
[INFO] running `Command { std: "docker" "start" "-a" "3773233c0bf433433cae61abd54a5b27d5867482767f2e147597495aca7f8770", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[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: 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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe 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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe 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: the item `AtomicUsize` is imported redundantly
[INFO] [stdout]    --> lib.rs:436:41
[INFO] [stdout]     |
[INFO] [stdout] 436 |     use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
[INFO] [stdout]     |                                         ^^^^^^^^^^^
[INFO] [stdout] 437 |     use super::*;
[INFO] [stdout]     |         -------- the item `AtomicUsize` is already imported here
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `Ordering` is imported redundantly
[INFO] [stdout]    --> lib.rs:436:54
[INFO] [stdout]     |
[INFO] [stdout] 436 |     use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
[INFO] [stdout]     |                                                      ^^^^^^^^
[INFO] [stdout] 437 |     use super::*;
[INFO] [stdout]     |         -------- the item `Ordering` is already imported here
[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: 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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe 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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is an object-safe 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, they should be avoided as they go against expectation
[INFO] [stdout]    --> lib.rs:380:9
[INFO] [stdout]     |
[INFO] [stdout] 380 | /         impl <'a> Drop for Registration<'a> {
[INFO] [stdout] 381 | |             fn drop(&mut self) {
[INFO] [stdout] 382 | |                 let _mutex_guard = self.cancellation_token.registrations.as_ref().unwrap().lock().unwrap();
[INFO] [stdout] 383 | |                 if !self.link_to_this.is_null() {
[INFO] [stdout] ...   |
[INFO] [stdout] 386 | |             }
[INFO] [stdout] 387 | |         }
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = help: move this `impl` block outside the of the current method `run`
[INFO] [stdout]     = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]     = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 6 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]    --> lib.rs:380:9
[INFO] [stdout]     |
[INFO] [stdout] 380 | /         impl <'a> Drop for Registration<'a> {
[INFO] [stdout] 381 | |             fn drop(&mut self) {
[INFO] [stdout] 382 | |                 let _mutex_guard = self.cancellation_token.registrations.as_ref().unwrap().lock().unwrap();
[INFO] [stdout] 383 | |                 if !self.link_to_this.is_null() {
[INFO] [stdout] ...   |
[INFO] [stdout] 386 | |             }
[INFO] [stdout] 387 | |         }
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = help: move this `impl` block outside the of the current method `run`
[INFO] [stdout]     = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]     = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 8 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.33s
[INFO] running `Command { std: "docker" "inspect" "3773233c0bf433433cae61abd54a5b27d5867482767f2e147597495aca7f8770", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3773233c0bf433433cae61abd54a5b27d5867482767f2e147597495aca7f8770", kill_on_drop: false }`
[INFO] [stdout] 3773233c0bf433433cae61abd54a5b27d5867482767f2e147597495aca7f8770
