Commit dea73b7
committed
Auto merge of #123792 - oli-obk:coroutine_closures, r=compiler-errors
Require explicitly marking closures as coroutines
instead of relying on patching up the closure to be a coroutine if it happens to contain a `yield` expression.
I only do this in the 2024 edition, as the `gen` keyword is only available there.1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3869 | 3869 | | |
3870 | 3870 | | |
3871 | 3871 | | |
3872 | | - | |
| 3872 | + | |
3873 | 3873 | | |
3874 | 3874 | | |
3875 | 3875 | | |
| |||
3901 | 3901 | | |
3902 | 3902 | | |
3903 | 3903 | | |
3904 | | - | |
| 3904 | + | |
3905 | 3905 | | |
3906 | 3906 | | |
3907 | 3907 | | |
| |||
4007 | 4007 | | |
4008 | 4008 | | |
4009 | 4009 | | |
4010 | | - | |
| 4010 | + | |
4011 | 4011 | | |
4012 | 4012 | | |
4013 | 4013 | | |
| |||
0 commit comments