diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-11-11 20:51:38 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-11 20:51:38 +0530 |
| commit | 978e7abeceed3c4d0d6c729c9e492890f478e8e1 (patch) | |
| tree | de39779098fb1c53124eee718c9698289882a9e8 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | b7b7f2716ee1655a696d3d64c3e12638d0dd19c0 (diff) | |
| parent | f57713b010775afd4061a7bd03c8be3c90465e15 (diff) | |
| download | rust-978e7abeceed3c4d0d6c729c9e492890f478e8e1.tar.gz rust-978e7abeceed3c4d0d6c729c9e492890f478e8e1.zip | |
Rollup merge of #100633 - estebank:must_use_async_fn_return, r=tmandry
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
