Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kaba0
on Nov 19, 2022
|
parent
|
context
|
favorite
| on:
Rust in the 6.2 kernel
What’s up with the Allocator API? Then it could be Vec::push<Allocator>(..), giving it an always-failing one for example.
tialaramex
on Nov 19, 2022
[–]
Vec::push<Allocator>(..) makes no sense, the Allocator is a parameter to the Vec type.
kaba0
on Nov 20, 2022
|
parent
[–]
That’s what I meant to write
tialaramex
on Nov 22, 2022
|
root
|
parent
[–]
OK and... ? What purpose does an always-failing allocator for Vec have? I guess maybe it's useful for some unit testing cases, but otherwise it seems pointless.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: