about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-05-28 16:05:48 +0000
committerGitHub <noreply@github.com>2025-05-28 16:05:48 +0000
commitb90880d4086e0418cd48d2037e95feb6e600fbe2 (patch)
tree3594b40b7a772676442ace76d1c6bcd04be10f08 /compiler/rustc_codegen_gcc
parent3a1159ed9f8d6939b15a028313daf93d0d83964f (diff)
parent7e590de4359cf74d31b017d6e6c6178f8acd3dd4 (diff)
downloadrust-b90880d4086e0418cd48d2037e95feb6e600fbe2.tar.gz
rust-b90880d4086e0418cd48d2037e95feb6e600fbe2.zip
Optimize `unit_return_expecting_ord` (#14905)
This lint was previously written very clumsily, not short-circuiting and
doing a lot of unnecessary work.

Now it makes sure to do the cheaper functions earlier and in general, is
just smarter.
(I specifically focused on minimizing binder instantiation

Sadly, I'm not finding any relevant result in a benchmark. Still with
the LLVM coverage instruments, the expensive bits are called lots of
less times (The binder instantiation that I care about is reduced from
95k to 10k throughout our test suite).

changelog:[`unit_return_expecting_ord`]: Optimize the lint
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions