about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-03-30 11:02:14 +0200
committerParis DOUADY <paris.douady@hotmail.fr>2020-07-14 15:54:04 +0200
commit126790999a128a880ca276c49afd2927a66ffbbe (patch)
treeed9c78eef840b53ef62ca8dc892e38ed8cfdc807 /src/rustllvm/RustWrapper.cpp
parent2ca58e7dda4a9eb142599638c59dc04d15961175 (diff)
downloadrust-126790999a128a880ca276c49afd2927a66ffbbe.tar.gz
rust-126790999a128a880ca276c49afd2927a66ffbbe.zip
new lint: Returning 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: rebase, update and address all concerns
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions