about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.coverage
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-05 09:14:06 +0000
committerbors <bors@rust-lang.org>2024-02-05 09:14:06 +0000
commit7fb639ffc18928cfc2fcdc4a0839b6e05bae4298 (patch)
treeb30653b8cfb27c8ebf696820915596d580f78e8d /tests/coverage/branch/lazy-boolean.coverage
parent3e47532dd4749a16786181652527b31fb1590d94 (diff)
parenta607e1b04b9263fa29e6000532e83f0526478440 (diff)
downloadrust-7fb639ffc18928cfc2fcdc4a0839b6e05bae4298.tar.gz
rust-7fb639ffc18928cfc2fcdc4a0839b6e05bae4298.zip
Auto merge of #16482 - GnomedDev:boxed-subtree, r=lnicola
Swap Subtree::token_trees from Vec to boxed slice

Performs one of the optimizations suggested in #16325, but a little bit more. Boxed slices guarantee `shrink_to_fit` aswell as saving a pointer width as no capacity has to be stored.

Most of the diff is:
- Changing `vec![]` to `Box::new([])`
- Changing initialize -> fill into fill -> into_boxed_slice
- Working around the lack of an owned iterator or automatic iteration over a `Box<[T]>`

I would like to use my own crate, [small-fixed-array](https://lib.rs/small-fixed-array), although I understand if it isn't mature enough for this. If I'm given the go ahead, I can rework this PR to use it instead.
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions