about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2025-04-11 13:39:03 +0000
committerGitHub <noreply@github.com>2025-04-11 13:39:03 +0000
commitac4c69f423e70e18125c7aef892f4a1ac2b4a19a (patch)
tree9e73ff28983e9d68e92dafd95633c53514d5fad7 /compiler/rustc_codegen_llvm/src/errors.rs
parentfad1bfc56853f07f744f4f9741a5de5b382be9cf (diff)
parent4ac36112254de57d886a71bd9000456fdc758805 (diff)
downloadrust-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