about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorKyle Huey <khuey@kylehuey.com>2020-08-14 17:30:48 -0700
committerKyle Huey <khuey@kylehuey.com>2020-08-29 15:33:54 -0700
commit4972989b616cbf96c015cd9fdf1f4b4464ecaace (patch)
tree08b2ca3af70dc01dad8d4b173ae76ee79f0b3554 /src/test/codegen/src-hash-algorithm
parentc88c6149415dd47b5f05e69d7307e0a1967c33f2 (diff)
downloadrust-4972989b616cbf96c015cd9fdf1f4b4464ecaace.tar.gz
rust-4972989b616cbf96c015cd9fdf1f4b4464ecaace.zip
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.
});
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions