about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSamuel "Sam" Tardieu <sam@rfc1149.net>2023-03-26 17:11:34 +0200
committerSamuel "Sam" Tardieu <sam@rfc1149.net>2023-04-05 10:06:01 +0200
commit2891d8f72f8e598177c0bf6c1d56ad2e70a1f536 (patch)
tree1971e9c051adab66439c66da47d88d1493d4c6ba /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent5ed64d4c612508ece912f170005abd7988865d10 (diff)
downloadrust-2891d8f72f8e598177c0bf6c1d56ad2e70a1f536.tar.gz
rust-2891d8f72f8e598177c0bf6c1d56ad2e70a1f536.zip
Make redundant_async_block a more complete late pass
This lets us detect more complex situations: `async { x.await }` is
simplified into `x` if:

- `x` is an expression without side-effect
- or `x` is an async block itself

In both cases, no part of the `async` expression can be part of a macro
expansion.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions