rust/compiler/rustc_codegen_ssa
Eric Holk 05e1f0d769 Generate more precise generator names
Currently all generators are named with a `generator$N` suffix,
regardless of where they come from. This means an `async fn` shows up as
a generator in stack traces, which can be surprising to async
programmers since they should not need to know that async functions are
implementated using generators.

This change generators a different name depending on the generator kind,
allowing us to tell whether the generator is the result of an async
block, an async closure, an async fn, or a plain generator.
2022-01-13 15:38:03 -08:00
..
2022-01-13 15:38:03 -08:00
2022-01-06 09:32:42 +00:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.