about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2020-03-04 10:34:24 -0800
committerJosh Stone <jistone@redhat.com>2020-03-04 10:34:24 -0800
commit53be0ccbc913f05c81f1762fd60512e3f57ab5c7 (patch)
tree901313c91371d8ae7ff18d43c5d13ce5ccbf5648 /src/libstd/sys/unix/stack_overflow.rs
parent2b0cfa5b4c5099f45ca540ee1c7d8c1ecd5267d2 (diff)
downloadrust-53be0ccbc913f05c81f1762fd60512e3f57ab5c7.tar.gz
rust-53be0ccbc913f05c81f1762fd60512e3f57ab5c7.zip
Use subslice patterns in slice methods
For all of the methods that pick off the first or last element, we can
use subslice patterns to implement them directly, rather than relying on
deeper indexing function calls. At a minimum, this means the generated
code will rely less on inlining for performance, but in some cases it
also optimizes better.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions