Files
rust/compiler/rustc_lint/src
Dylan DPC d5b86d5ee9 Rollup merge of #101690 - kadiwa4:avoid_iterator_last, r=oli-obk
Avoid `Iterator::last`

Adapters like `Filter` and `Map` use the default implementation of `Iterator::last` which is not short-circuiting (and so does `core::str::Split`). The predicate function will be run for every single item of the underlying iterator. I hope that removing those calls to `last` results in slight performance improvements.
2022-09-13 16:51:31 +05:30
..
2022-06-30 08:59:21 +01:00
2022-08-04 17:31:08 -04:00
2022-09-06 14:23:03 -04:00
2021-07-08 17:14:28 +02:00
2022-09-11 17:23:00 +02:00