about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorArpad Borsos <swatinem@swatinem.de>2022-11-18 22:56:22 +0100
committerArpad Borsos <swatinem@swatinem.de>2022-11-24 10:04:27 +0100
commit1ebdcca8b97feca67ce077a2bad87e7655bc774a (patch)
tree2b5a0f7d734821c4748c4da6f516a5435bda250f /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
parent91d2ce302020391df83620b622acea484c505b72 (diff)
downloadrust-1ebdcca8b97feca67ce077a2bad87e7655bc774a.tar.gz
rust-1ebdcca8b97feca67ce077a2bad87e7655bc774a.zip
Avoid `GenFuture` shim when compiling async constructs
Previously, async constructs would be lowered to "normal" generators,
with an additional `from_generator` / `GenFuture` shim in between to
convert from `Generator` to `Future`.

The compiler will now special-case these generators internally so that
async constructs will *directly* implement `Future` without the need
to go through the `from_generator` / `GenFuture` shim.

The primary motivation for this change was hiding this implementation
detail in stack traces and debuginfo, but it can in theory also help
the optimizer as there is less abstractions to see through.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions