about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-03-20 23:44:23 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-03-28 12:14:43 +0100
commit4ac36112254de57d886a71bd9000456fdc758805 (patch)
treef9bc6156a50497b48f7f2e8533f02c9c446c129b /compiler/rustc_codegen_gcc/example/alloc_example.rs
parent8357d063102a53b0069d7380582fbaa0ca53ab42 (diff)
downloadrust-4ac36112254de57d886a71bd9000456fdc758805.tar.gz
rust-4ac36112254de57d886a71bd9000456fdc758805.zip
`implicit_return`: do not suggest adding `return` into desugared code
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, in the case of an implicit return on a `.await` expression, ensure
that the suggested `return` is emitted at the right place instead of
before the `await` keyword.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions