rust/compiler/rustc_middle
bors 23c7bad921 Auto merge of #148157 - nnethercote:undo-chain, r=saethlin
Adjust successor iterators.

Because rust-lang/rust#148054 was a slight perf regression.

The problem was seemingly because this iterator structure:
```
slice_iter.chain(Option_iter.chain(Option_iter))
```
changed to this:
```
slice_iter.chain(Option_iter).chain(Option_iter)
```
The commit also tweaks the `slice_iter` part, changing `into_iter` to `iter` and using `[]` instead of `(&[])`, for conciseness and consistency.

r? `@saethlin`
2025-10-31 05:12:24 +00:00
..
2025-10-04 18:18:58 +00:00

For more information about how rustc works, see the rustc dev guide.