diff options
| author | Joshua Wong <joshuawong@anticentri.st> | 2024-05-12 19:56:03 -0500 |
|---|---|---|
| committer | Joshua Wong <joshuawong@anticentri.st> | 2024-05-18 18:30:20 -0500 |
| commit | 9d6b93c3e6609aa104da23cb9091c6c2e277f71e (patch) | |
| tree | a88298b12c4fdbaa92e85d0f0b7f9fd830eef0ba /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 6165dca6dbf66d45a373e08f16d1fc85f7be0ac7 (diff) | |
| download | rust-9d6b93c3e6609aa104da23cb9091c6c2e277f71e.tar.gz rust-9d6b93c3e6609aa104da23cb9091c6c2e277f71e.zip | |
specialize `Iterator::fold` for `vec::IntoIter`
LLVM currently adds a redundant check for the returned option, in addition to the `self.ptr != self.end` check when using the default `Iterator::fold` method that calls `vec::IntoIter::next` in a loop.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
