]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #83770 - the8472:tra-extend, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Wed, 26 May 2021 19:22:31 +0000 (19:22 +0000)
committerbors <bors@rust-lang.org>
Wed, 26 May 2021 19:22:31 +0000 (19:22 +0000)
commit9111b8ae9793f18179a1336417618fc07a9cac85
treec9a340a8df725f9af9c8b0e6f905f3fd8321c6b1
parent9a700d2947f2d7f97a2c0dfca3117a8dcc255bdd
parent020287516b756936dc774f95f6a8039c7d24d640
Auto merge of #83770 - the8472:tra-extend, r=Mark-Simulacrum

Add `TrustedRandomAccess` specialization for `Vec::extend()`

This should do roughly the same as the `TrustedLen` specialization but result in less IR by using `__iterator_get_unchecked`
instead of `Iterator::for_each`

Conflicting specializations are manually prioritized by grouping them under yet another helper trait.
library/alloc/src/vec/spec_extend.rs