about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-10 12:09:21 +0000
committerbors <bors@rust-lang.org>2022-10-10 12:09:21 +0000
commit0265a3e93bf1b89d97cae113ed214954d5c35e22 (patch)
treed0d9a4d7dd010de2f14cf0dd38e95c917324bf40 /compiler/rustc_parse/src/parser/expr.rs
parent691aeaad6c9ee3483f2851695379b348b8a92a43 (diff)
parent93e587b81791bdd943117b19ade708c9f7193325 (diff)
downloadrust-0265a3e93bf1b89d97cae113ed214954d5c35e22.tar.gz
rust-0265a3e93bf1b89d97cae113ed214954d5c35e22.zip
Auto merge of #96711 - emilio:inline-slice-clone, r=nikic
slice: #[inline] a couple iterator methods.

The one I care about and actually saw in the wild not getting inlined is
clone(). We ended up doing a whole function call for something that just
copies two pointers.

I ended up marking as_slice / as_ref as well because make_slice is
inline(always) itself, and is also the kind of think that can kill
performance in hot loops if you expect it to get inlined. But happy to
undo those.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions