about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-16 21:47:43 -0400
committerGitHub <noreply@github.com>2025-03-16 21:47:43 -0400
commit04032ab233130d16a68e0f2a0c55bb0f5ec01d6a (patch)
treed89539b290f96c109b143cc4beb0df6ea6ae8976 /compiler/rustc_parse/src
parentfeb6cb413246ce9132fbd2a3e5c5f4fa05c94d7e (diff)
parent9d9bac0e968362ff3da4788cc04c65d5f0b6898f (diff)
downloadrust-04032ab233130d16a68e0f2a0c55bb0f5ec01d6a.tar.gz
rust-04032ab233130d16a68e0f2a0c55bb0f5ec01d6a.zip
Rollup merge of #136816 - yotamofek:pr/notable-traits-button-cleanup, r=aDotInTheVoid
refactor `notable_traits_button` to use iterator combinators  instead of for loop

~Small cleanup.
Use `Iterator::any` instead of `for` loop with `predicate = true;`.
I think this makes the code more readable... and also has the additional benefit of short-circuiting the iterator when a notable trait is found (a `break` statement was missing in the `for` loop version, I think). Probably won't be significant enough to show on perf results, though.~

Three commits, each attempting to optimize `notable_trait_buttons` by a little bit.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions