Files
rust/library/alloc/src
bors 207c80f105 Auto merge of #91352 - nnethercote:RawVec-reserve_for_push, r=dtolnay
Introduce `RawVec::reserve_for_push`.

If `Vec::push`'s capacity check fails it calls `RawVec::reserve`, which
then also does a capacity check.

This commit introduces `reserve_for_push` which skips the redundant
capacity check, for some slight compile time speed-ups.

I tried lots of minor variations on this, e.g. different inlining
attributes. This was the best one I could find.

r? `@ghost`
2021-11-30 13:52:38 +00:00
..
2021-11-30 08:10:47 +11:00
2021-09-15 03:06:53 +00:00
2021-11-09 07:13:53 -05:00
2021-11-15 10:14:29 +01:00
2021-11-30 08:10:47 +11:00
2021-11-05 17:14:57 +10:00
2021-04-21 15:45:41 +02:00