| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
|
|
into free functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private trait instead
|
|
|
|
|
|
|
|
|
|
|
|
# Conflicts:
# library/alloc/src/lib.rs
|
|
|
|
|
|
|
|
- it's an allocation optimization, so don't attempt to do it on ZSTs
- drop the tail of partially exhausted iters
|
|
|
|
|
|
this was already implemented for Extend but not for FromIterator
|
|
specializations
|
|
this enables in-place iteration and allocation reuse in additional cases
|
|
|
|
|
|
|
|
|
|
|
|
this is the original SpecExtend<_, IntoIter> logic except generalizing
the fast-path to include a memmove
|
|
was lost during refactoring
|
|
|
|
switch to try_fold and segregate the drop handling to keep
collect::<Vec<u8>>() and similar optimizer-friendly
It comes at the cost of less accurate debug_asserts and code complexity
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Convert many files to intra-doc links
Helps with https://github.com/rust-lang/rust/issues/75080
r? @poliorcetics
I recommend reviewing one commit at a time, but the diff is small enough you can do it all at once if you like :)
|
|
|