-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ref-like locals in iterators and async methods (#72664)
* Allow ref-like locals in iterators and async methods * Return check of ref-like locals in async methods * Move declaration to block where it's used * Add todo for improving error message of ERR_SpecialByRefInLambda * Test `ref` in `await foreach` and iterator * Extend tests * Skip incompatible desktop tests * Test `yield break` in the new `lock` * Extend tests * Mark removed unreleased error code as available * Improve check for ref locals that can be hoisted * Return error `ERR_BadSpecialByRefIterator` * Extend tests * Uncapitalize feature name to be like others * Use better errors for refs across awaits * Improve errors for spilled ref locals across awaits * Replace remaining old error messages * Return wrongly removed fact condition * Extend tests * Report errors close to problematic usage where possible * Add more tests * Test foreach on ref local with iterator inside * Report spill local await boundary errors at their declaration * Revert accidentally changed test name * Test ref struct Current of async enumerator
- Loading branch information
Showing
43 changed files
with
4,835 additions
and
1,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.