diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-04-13 04:21:10 -0700 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-04-13 16:23:12 -0700 |
| commit | ed5f31ab01d41a01b7206eafdf97b458dc41141a (patch) | |
| tree | b52d5dede49b7d5e9a60b36f4ac8f7027bcf2d53 /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | 65fa0ab9246da73183b848a0c29b033779fe6f6c (diff) | |
| download | rust-ed5f31ab01d41a01b7206eafdf97b458dc41141a.tar.gz rust-ed5f31ab01d41a01b7206eafdf97b458dc41141a.zip | |
Avoid unused clones in Cloned<I> and Copied<I>
Avoid cloning in `Cloned<I>` or copying in `Copied<I>` when elements are only needed by reference or not at all. There is already some precedent for this, given that `__iterator_get_unchecked` is implemented, which can skip elements. The reduced clones are technically observable by a user impl of `Clone`.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
