diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-08-16 07:56:42 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-11-10 18:01:03 -0800 |
| commit | 243496e1299bc6dddb3824a91f026da34f732199 (patch) | |
| tree | bb0052f9b3ae5bf5a2cbafaaf548b60f163f31cb /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | 50bb7a40e11918a93e19ca44ca8893e3b56a8ec8 (diff) | |
| download | rust-243496e1299bc6dddb3824a91f026da34f732199.tar.gz rust-243496e1299bc6dddb3824a91f026da34f732199.zip | |
Consider `#[must_use]` annotation on `async fn` as also affecting the `Future::Output`
No longer lint against `#[must_use] async fn foo()`. When encountering a statement that awaits on a `Future`, check if the `Future`'s parent item is annotated with `#[must_use]` and emit a lint if so. This effectively makes `must_use` an annotation on the `Future::Output` instead of only the `Future` itself. Fix #78149.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
