diff options
| author | Alex Macleod <alex@macleod.io> | 2025-04-11 13:39:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 13:39:03 +0000 |
| commit | ac4c69f423e70e18125c7aef892f4a1ac2b4a19a (patch) | |
| tree | 9e73ff28983e9d68e92dafd95633c53514d5fad7 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | fad1bfc56853f07f744f4f9741a5de5b382be9cf (diff) | |
| parent | 4ac36112254de57d886a71bd9000456fdc758805 (diff) | |
| download | rust-ac4c69f423e70e18125c7aef892f4a1ac2b4a19a.tar.gz rust-ac4c69f423e70e18125c7aef892f4a1ac2b4a19a.zip | |
`implicit_return`: better handling of asynchronous code (#14446)
Blocks created by desugaring will not contain an explicit `return`. Do not suggest to add it when the user has no control over the desugared code. Also, ensure that in a `xxx.await` expression, the suggested `return` is emitted before the whole expression, not before the `await` keyword. Fix #14411 changelog: [`implicit_return`]: fix proposed `return` position in the presence of asynchronous code
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
