about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-25 15:43:29 +0000
committerbors <bors@rust-lang.org>2022-01-25 15:43:29 +0000
commit92ed8747f255b2695c33b64982e6959711a72cb9 (patch)
tree2d93b34de6249b0f75fd8862846dcd545825407c /compiler/rustc_mir_transform/src/coverage/query.rs
parent17dfae79bbc3dabe1427073086acf7f7bd45148c (diff)
parent3a3e4b78593bc2669828dfc2e36070897b9c6a4d (diff)
downloadrust-92ed8747f255b2695c33b64982e6959711a72cb9.tar.gz
rust-92ed8747f255b2695c33b64982e6959711a72cb9.zip
Auto merge of #92353 - Kobzol:doc-attr-lists-gat, r=GuillaumeGomez
Rustdoc: remove ListAttributesIter and use impl Iterator instead

This is a continuation of https://github.com/rust-lang/rust/pull/92227.

I found that `ListAttributesIter` did not optimize well and replacing it with a simple `impl Iterator` resulted in 1-3 % instruction count wins locally.

Because I needed to use `impl Iterator` on a slice of AST attributes, I had to implement it using GAT + impl trait. I also have a version without GAT [here](https://github.com/Kobzol/rust/commit/5470e2a65cbd3086d19f0847f44ca9cbbc049689), if GATs are not welcome in rustdoc :D Locally it resulted in equal performance numbers.

Can I ask for a perf. run? Thanks.

r? rust-lang/rustdoc
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions