You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should vec::reserve reserve the exact amount or in powers of two? #2071
Currently it's exact, but there are places in vec that use it in conjuction with next_power_of_two to do it the other way, and #2062 also wants to reserve in powers of two.
Clearly there should be two different versions. Should the default be exact? If so, what should the next_power_of_two version be called?
Jesse suggested reserve_at_least which I think is good. Think I will go ahead and add that and update the documentation on vec::reserve to indicate the exact behavior. Do the same for str::reserve probably.
Activity
brson commentedon Mar 29, 2012
Jesse suggested
reserve_at_leastwhich I think is good. Think I will go ahead and add that and update the documentation onvec::reserveto indicate the exact behavior. Do the same forstr::reserveprobably.brson commentedon Mar 29, 2012
Implemented.
Fix coherence checking for impl trait in type aliases
Edit a sentence for clarity (rust-lang#2071)
Edit a sentence for clarity (rust-lang#2071)
Merge pull request rust-lang#2071 from davidtwco/sve-intrinsics
Merge rust-lang#2071
Auto merge of rust-lang#2071 - RalfJung:provenance, r=RalfJung