bubble up out-of-memory errors from liballoc#18406
bubble up out-of-memory errors from liballoc#18406bors merged 1 commit intorust-lang:masterfrom thestinger:oom
Conversation
src/librustrt/c_str.rs
Outdated
|
This needs a rebase, also, the documentation of alloc explicitly states:
So this needs to be updated, and maybe the design decision for this choice should be addressed. ( |
This makes the low-level allocation API suitable for use cases where out-of-memory conditions need to be handled. Closes #18292 [breaking-change]
|
@huonw: It's wrong because |
|
There's still not much you can do if you intend to handle out-of-memory conditions, but we can work towards moving the problem further up the stack to make Rust more usable in niches like kernels. For example, there's no reason that |
This makes the low-level allocation API suitable for use cases where out-of-memory conditions need to be handled. Closes #18292 [breaking-change]
This makes the low-level allocation API suitable for use cases where
out-of-memory conditions need to be handled.
Closes #18292
[breaking-change]