diff options
| author | bors <bors@rust-lang.org> | 2020-07-14 16:32:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-07-14 16:32:25 +0000 |
| commit | 97d7a8b319ea266da57a7964719a006582871be4 (patch) | |
| tree | ed9c78eef840b53ef62ca8dc892e38ed8cfdc807 /src/rustllvm/RustWrapper.cpp | |
| parent | 2ca58e7dda4a9eb142599638c59dc04d15961175 (diff) | |
| parent | 126790999a128a880ca276c49afd2927a66ffbbe (diff) | |
| download | rust-97d7a8b319ea266da57a7964719a006582871be4.tar.gz rust-97d7a8b319ea266da57a7964719a006582871be4.zip | |
Auto merge of #5737 - Uriopass:unit-for-ord, r=flip1995
Reprise: new lint: Unintentional return of unit from closures expecting Ord This lint catches cases where the last statement of a closure expecting an instance of Ord has a trailing semi-colon. It compiles since the closure ends up return () which also implements Ord but causes unexpected results in cases such as sort_by_key. Fixes #5080 Reprise of #5348 where I addressed all the comments there changelog: add lint [`unit_return_expecting_ord`]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
