From: bors Date: Mon, 31 Aug 2020 19:20:30 +0000 (+0000) Subject: Auto merge of #5909 - khuey:async_yields_async, r=yaahc X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8334a58c2f949fd5f1e2c131ae7b614498bae746;p=rust.git 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 --- 8334a58c2f949fd5f1e2c131ae7b614498bae746