diff options
| author | bors <bors@rust-lang.org> | 2025-02-05 02:51:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-05 02:51:17 +0000 |
| commit | 8df89d1cb077cd76013d3f9f5a4e92c5b5a9280c (patch) | |
| tree | 1911dcabc33f265c07055cccba41bc7a9155246d /compiler/rustc_const_eval/src/util/mod.rs | |
| parent | e5f11af042ad099102efd572743138df60764a4e (diff) | |
| parent | cb028dc3b7c549b6becd6da821b2bcb9339a1a21 (diff) | |
| download | rust-8df89d1cb077cd76013d3f9f5a4e92c5b5a9280c.tar.gz rust-8df89d1cb077cd76013d3f9f5a4e92c5b5a9280c.zip | |
Auto merge of #136244 - yotamofek:pr/rustdoc-join-iter, r=GuillaumeGomez
librustdoc: create a helper for separating elements of an iterator instead of implementing it multiple times This implements something similar to [`Itertools::format`](https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.format), but on `Fn`s returning iterators instead of directly on iterators, to allow implementing `Display` without the use of a `Cell` (to handle the possibility of `fmt` being called multiple times while receiving `&self`). ~This is WIP, I just want to get a perf run first to see if the regression I saw in #135494 is fixed~ This was originally part of #135494 , but originally caused a perf regression that was since fixed: https://github.com/rust-lang/rust/blob/7d5ae1863aa66847a4edf8d2ef9420717df65c5d/src/librustdoc/html/format.rs#L507
Diffstat (limited to 'compiler/rustc_const_eval/src/util/mod.rs')
0 files changed, 0 insertions, 0 deletions
