diff options
| author | bors <bors@rust-lang.org> | 2024-02-08 16:54:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-08 16:54:41 +0000 |
| commit | e418c90e975858d5edff4011ab3aad3beae2a8c5 (patch) | |
| tree | 65f7df9b5e4bb2651653e0e110c7679537332c05 /tests/coverage/branch/lazy-boolean.coverage | |
| parent | e07183461fe710e89cdc75edec0d81e8e9882116 (diff) | |
| parent | 602acfcb70f5b0af1157268196eba440cf064b25 (diff) | |
| download | rust-e418c90e975858d5edff4011ab3aad3beae2a8c5.tar.gz rust-e418c90e975858d5edff4011ab3aad3beae2a8c5.zip | |
Auto merge of #16460 - davidsemakula:trailing-return-diagnostic, r=Veykril
feat: Add diagnostic with fix to replace trailing `return <val>;` with `<val>` Works for functions and closures. Ignores desugared return expressions (e.g. from desugared try operators). Fixes: #10970 Completes: #11020
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions
