about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-31 19:20:30 +0000
committerbors <bors@rust-lang.org>2020-08-31 19:20:30 +0000
commit8334a58c2f949fd5f1e2c131ae7b614498bae746 (patch)
tree334ab3450a5637839ccb9da24402263250dd44b1 /src/test/incremental/thinlto
parent001c1c51d2d4b6964a2f0c0c5936bfaacf49a585 (diff)
parent04912ca115ff153a97d80b604435b10dcb155dd0 (diff)
downloadrust-8334a58c2f949fd5f1e2c131ae7b614498bae746.tar.gz
rust-8334a58c2f949fd5f1e2c131ae7b614498bae746.zip
Auto merge of #5909 - khuey:async_yields_async, r=yaahc
Add a lint for an async block/closure that yields a type that is itself awaitable.

This catches bugs of the form

tokio::spawn(async move {
    let f = some_async_thing();
    f // Oh no I forgot to await f so that work will never complete.
});

See the two XXXkhuey comments and the unfixed `_l` structure for things that need more thought.

*Please keep the line below*
changelog: none
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions