diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-03-20 23:44:23 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-03-28 12:14:43 +0100 |
| commit | 4ac36112254de57d886a71bd9000456fdc758805 (patch) | |
| tree | f9bc6156a50497b48f7f2e8533f02c9c446c129b /compiler/rustc_codegen_gcc/example/alloc_example.rs | |
| parent | 8357d063102a53b0069d7380582fbaa0ca53ab42 (diff) | |
| download | rust-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
