2024 No migration for a particular RPIT scenario (async?) #132819
Labels
A-edition-2024
Area: The 2024 edition
C-bug
Category: This is a bug.
D-edition
Diagnostics: An error or lint that should account for edition differences.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Sorry, I'm not certain how to describe this scenario or why it doesn't seem to work. This could also probably be minimized more.
I tried this code:
I expected to see this happen: Should generate a warning about it not working in 2024. At least, I cannot correlate the error with the scenarios described in the migration docs that describe scenarios that are not supported.
Instead, this happened: This does not generate any warnings about it not working in 2024. After migrating to 2024, you get an error:
I believe the solution here is to add:
From messing around, it seems like the
async
part ofprocess_upgraded
is the key factor that is preventing theimpl_trait_overcaptures
lint from firing.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: