drop-tracking: type parameters are incorrectly required to be Send to make futures Send #98477
Labels
A-async-await
Area: Async & Await
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
cc #97331, @eholk. Minimized from https://crater-reports.s3.amazonaws.com/pr-97334/try%23615edd3ad1cf6871c977dc900317cb6c2070fd6b/gh/AtsushiMiyazaki.rust-cmd/log.txt in the crater run for #97334.
I tried this code:
I expected to see this happen: The code compiles fine, like it does without -Zdrop-tracking. The code doesn't actually use
T
anywhere so it shouldn't require it to be Send.Instead, this happened:
Meta
rustc --version --verbose
: 615edd3ad1cf6871c977dc900317cb6c2070fd6bThe text was updated successfully, but these errors were encountered: