-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
AsyncDrop broken normal Drop #156008
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-async_drop`#![feature(async_drop)]``#![feature(async_drop)]`needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-async_drop`#![feature(async_drop)]``#![feature(async_drop)]`needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen:
print normal logs,
drop st 1
drop st 2
Instead, this happened:
drop st 2
Meta
rustc --version --verbose:it remove the async drop feature, print correctly
drop st 1
drop st 2