rust/library
Sebastian Dröge d08996ac54 Get rid of bounds check in slice::chunks_exact() and related functions during construction
LLVM can't figure out in

    let rem = self.len() % chunk_size;
    let len = self.len() - rem;
    let (fst, snd) = self.split_at(len);

and

    let rem = self.len() % chunk_size;
    let (fst, snd) = self.split_at(rem);

that the index passed to split_at() is smaller than the slice length and
adds a bounds check plus panic for it.

Apart from removing the overhead of the bounds check this also allows
LLVM to optimize code around the ChunksExact iterator better.
2020-08-30 23:13:47 +03:00
..
alloc Auto merge of #75815 - jyn514:ambiguous-primitives, r=guillaumegomez 2020-08-24 10:29:29 +00:00
backtrace@4083a90168
core Get rid of bounds check in slice::chunks_exact() and related functions during construction 2020-08-30 23:13:47 +03:00
panic_abort Fix up docs 2020-08-10 17:39:06 +02:00
panic_unwind Add back unwinding support for Sony PSP 2020-08-08 02:14:40 -04:00
proc_macro Use intra-doc link in proc_macro 2020-08-22 22:29:43 +02:00
profiler_builtins Profiler: reenable atomics after #65214 2020-08-23 15:55:18 +02:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #75364 - rylev:libpanic-abort-failfast, r=alexcrichton 2020-08-25 07:36:52 +00:00
stdarch@78891cdf29
term
test Prefer https link for wikipedia URLs 2020-08-23 10:02:42 +00:00
unwind Add back unwinding support for Sony PSP 2020-08-08 02:14:40 -04:00