rust/compiler/rustc_passes
Veera 21ccec0cc8 Fix Error Messages for break Inside Coroutines
Previously, `break` inside `gen` blocks and functions
were incorrectly identified to be enclosed by a closure.

This PR fixes it by displaying an appropriate error message
for async blocks, async closures, async functions, gen blocks,
gen closures, gen functions, async gen blocks, async gen closures
and async gen functions.

Note: gen closure and async gen closure are not supported by the
compiler yet but I have added an error message here assuming that
they might be implemented in the future.

Also, fixes grammar in a few places by replacing
`inside of a $coroutine` with `inside a $coroutine`.
2024-05-08 17:32:25 -04:00
..
src Fix Error Messages for break Inside Coroutines 2024-05-08 17:32:25 -04:00
Cargo.toml Test and implement reachability for trait objects and generic parameters of functions 2024-03-14 14:10:45 +00:00
messages.ftl Fix Error Messages for break Inside Coroutines 2024-05-08 17:32:25 -04:00