Re:Rust in the 6.2 Kernel
by kaba0 on Saturday November 19, 2022 @12:12PM
(#33672085)
What’s up with the Allocator API? Then it could be Vec::push<Allocator>(..), giving it an always-failing one for example.
[ Parent
| on HN ]
Re:Rust in the 6.2 Kernel
by tialaramex on Saturday November 19, 2022 @02:37PM
(#33673785)
Vec::push<Allocator>(..) makes no sense, the Allocator is a parameter to the Vec type.
That’s what I meant to write
Re:Rust in the 6.2 Kernel
by tialaramex on Tuesday November 22, 2022 @04:15AM
(#33703713)
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.