[INFO] fetching crate async-drop-guard 0.0.6... [INFO] checking async-drop-guard-0.0.6 against try#8ea250bdb76176ecb0225baa34aa634b024ae0e2 for pr-101692 [INFO] extracting crate async-drop-guard 0.0.6 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate async-drop-guard 0.0.6 on toolchain 8ea250bdb76176ecb0225baa34aa634b024ae0e2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8ea250bdb76176ecb0225baa34aa634b024ae0e2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate async-drop-guard 0.0.6 [INFO] finished tweaking crates.io crate async-drop-guard 0.0.6 [INFO] tweaked toml for crates.io crate async-drop-guard 0.0.6 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8ea250bdb76176ecb0225baa34aa634b024ae0e2" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8ea250bdb76176ecb0225baa34aa634b024ae0e2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+8ea250bdb76176ecb0225baa34aa634b024ae0e2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 17ca9b6dc00993486efeb5ab5457214cebcf9b0d937af0e8f7aef9ee650081e7 [INFO] running `Command { std: "docker" "start" "-a" "17ca9b6dc00993486efeb5ab5457214cebcf9b0d937af0e8f7aef9ee650081e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17ca9b6dc00993486efeb5ab5457214cebcf9b0d937af0e8f7aef9ee650081e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17ca9b6dc00993486efeb5ab5457214cebcf9b0d937af0e8f7aef9ee650081e7", kill_on_drop: false }` [INFO] [stdout] 17ca9b6dc00993486efeb5ab5457214cebcf9b0d937af0e8f7aef9ee650081e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+8ea250bdb76176ecb0225baa34aa634b024ae0e2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 698d70658eb798d00d926ab7e0c37ef58bb51ead0b6ffacffa8e3d5ce8303761 [INFO] running `Command { std: "docker" "start" "-a" "698d70658eb798d00d926ab7e0c37ef58bb51ead0b6ffacffa8e3d5ce8303761", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling async-trait v0.1.57 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling tokio v1.21.1 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling futures-macro v0.3.24 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Checking futures-executor v0.3.24 [INFO] [stderr] Checking futures v0.3.24 [INFO] [stderr] Checking async-drop-guard v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] error[E0391]: cycle detected when type-checking `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics` [INFO] [stdout] --> src/guard.rs:195:20 [INFO] [stdout] | [INFO] [stdout] 195 | let _obj = AsyncDropGuard::new(MyStructWithoutDrop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which requires evaluating trait selection obligation `[generator interior@src/guard.rs:196:37: 196:47]: core::marker::Send`... [INFO] [stdout] note: ...which requires generator glue MIR for `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires elaborating drops for `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires borrow-checking `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing MIR for `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires unsafety-checking `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires building MIR for `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires type-checking `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: ...which again requires type-checking `guard::tests::given_type_without_drop_when_forgetting_to_call_async_drop_then_panics`, completing the cycle [INFO] [stdout] = note: cycle used when type-checking all item bodies [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0391]: cycle detected when type-checking `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics` [INFO] [stdout] --> src/guard.rs:203:20 [INFO] [stdout] | [INFO] [stdout] 203 | let _obj = AsyncDropGuard::new(MyStructWithDrop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which requires evaluating trait selection obligation `[generator interior@src/guard.rs:204:37: 204:47]: core::marker::Send`... [INFO] [stdout] note: ...which requires generator glue MIR for `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires elaborating drops for `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires borrow-checking `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing MIR for `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires unsafety-checking `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires building MIR for `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: ...which requires type-checking `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:204:37 [INFO] [stdout] | [INFO] [stdout] 204 | on_async_drop: || async { Ok(()) }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: ...which again requires type-checking `guard::tests::given_type_with_drop_when_forgetting_to_call_async_drop_then_panics`, completing the cycle [INFO] [stdout] = note: cycle used when type-checking all item bodies [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0391]: cycle detected when type-checking `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl` [INFO] [stdout] --> src/guard.rs:212:23 [INFO] [stdout] | [INFO] [stdout] 212 | let mut obj = AsyncDropGuard::new(MyStructWithoutDrop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which requires evaluating trait selection obligation `[generator interior@src/guard.rs:213:37: 217:14]: core::marker::Send`... [INFO] [stdout] note: ...which requires generator glue MIR for `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires elaborating drops for `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires borrow-checking `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires processing `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires processing MIR for `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires unsafety-checking `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires building MIR for `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires type-checking `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:213:37 [INFO] [stdout] | [INFO] [stdout] 213 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 214 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 215 | | assert_eq!(0, prev_value); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] = note: ...which again requires type-checking `guard::tests::given_type_without_drop_when_calling_async_drop_then_calls_async_drop_impl`, completing the cycle [INFO] [stdout] = note: cycle used when type-checking all item bodies [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0391]: cycle detected when type-checking `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop` [INFO] [stdout] --> src/guard.rs:227:23 [INFO] [stdout] | [INFO] [stdout] 227 | let mut obj = AsyncDropGuard::new(MyStructWithDrop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which requires evaluating trait selection obligation `[generator interior@src/guard.rs:228:37: 232:14]: core::marker::Send`... [INFO] [stdout] note: ...which requires generator glue MIR for `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires elaborating drops for `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires borrow-checking `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires processing `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires processing MIR for `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires unsafety-checking `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires building MIR for `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] note: ...which requires type-checking `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:228:37 [INFO] [stdout] | [INFO] [stdout] 228 | on_async_drop: || async { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 229 | | let prev_value = called.swap(1, Ordering::SeqCst); [INFO] [stdout] 230 | | assert_eq!(0, prev_value); [INFO] [stdout] 231 | | Ok(()) [INFO] [stdout] 232 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] = note: ...which again requires type-checking `guard::tests::given_type_with_drop_when_calling_async_drop_then_calls_async_drop_impl_and_then_calls_drop`, completing the cycle [INFO] [stdout] = note: cycle used when type-checking all item bodies [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0391]: cycle detected when type-checking `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error` [INFO] [stdout] --> src/guard.rs:244:23 [INFO] [stdout] | [INFO] [stdout] 244 | let mut obj = AsyncDropGuard::new(MyStructWithoutDrop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which requires evaluating trait selection obligation `[generator interior@src/guard.rs:245:37: 245:56]: core::marker::Send`... [INFO] [stdout] note: ...which requires generator glue MIR for `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires elaborating drops for `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires borrow-checking `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing MIR for `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires unsafety-checking `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires building MIR for `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires type-checking `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:245:37 [INFO] [stdout] | [INFO] [stdout] 245 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: ...which again requires type-checking `guard::tests::given_type_without_drop_when_async_drop_fails_then_returns_error`, completing the cycle [INFO] [stdout] = note: cycle used when type-checking all item bodies [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0391]: cycle detected when type-checking `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop` [INFO] [stdout] --> src/guard.rs:253:23 [INFO] [stdout] | [INFO] [stdout] 253 | let mut obj = AsyncDropGuard::new(MyStructWithDrop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which requires evaluating trait selection obligation `[generator interior@src/guard.rs:254:37: 254:56]: core::marker::Send`... [INFO] [stdout] note: ...which requires generator glue MIR for `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires elaborating drops for `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires borrow-checking `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires processing MIR for `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires unsafety-checking `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires building MIR for `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires type-checking `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop::{closure#0}::{closure#0}::{closure#0}`... [INFO] [stdout] --> src/guard.rs:254:37 [INFO] [stdout] | [INFO] [stdout] 254 | on_async_drop: || async { Err("My error") }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: ...which again requires type-checking `guard::tests::given_type_with_drop_when_async_drop_fails_then_returns_error_and_still_calls_drop`, completing the cycle [INFO] [stdout] = note: cycle used when type-checking all item bodies [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0391`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-drop-guard` due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "698d70658eb798d00d926ab7e0c37ef58bb51ead0b6ffacffa8e3d5ce8303761", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "698d70658eb798d00d926ab7e0c37ef58bb51ead0b6ffacffa8e3d5ce8303761", kill_on_drop: false }` [INFO] [stdout] 698d70658eb798d00d926ab7e0c37ef58bb51ead0b6ffacffa8e3d5ce8303761