diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-03-16 21:47:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-16 21:47:43 -0400 |
| commit | 04032ab233130d16a68e0f2a0c55bb0f5ec01d6a (patch) | |
| tree | d89539b290f96c109b143cc4beb0df6ea6ae8976 /compiler/rustc_parse/src | |
| parent | feb6cb413246ce9132fbd2a3e5c5f4fa05c94d7e (diff) | |
| parent | 9d9bac0e968362ff3da4788cc04c65d5f0b6898f (diff) | |
| download | rust-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
