Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ibotty
on April 15, 2021
|
parent
|
context
|
favorite
| on:
An RFC that adds support for Rust to the Linux ker...
How can you catch allocation failure from ::new? Is it possible without exceptions (which have some other problems in kernel space)?
steerablesafe
on April 15, 2021
[–]
One can use ::new(std::nothrow), which selects the non-throwing allocation function. Returns nullptr on failure.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: