about summary refs log tree commit diff
path: root/library/std/src/sys/hermit/mod.rs
AgeCommit message (Collapse)AuthorLines
2021-03-24Rollup merge of #83353 - m-ou-se:io-error-avoid-alloc, r=nagisaDylan DPC-1/+4
Add internal io::Error::new_const to avoid allocations. This makes it possible to have a io::Error containing a message with zero allocations, and uses that everywhere to avoid the *three* allocations involved in `io::Error::new(kind, "message")`. The function signature isn't perfect, because it needs a reference to the `&str`. So for now, this is just a `pub(crate)` function. Later, we'll be able to use `fn new_const<MSG: &'static str>(kind: ErrorKind)` to make that a bit better. (Then we'll also be able to use some ZST trickery if that would result in more efficient code.) See https://github.com/rust-lang/rust/issues/83352
2021-03-21Use io::Error::new_const everywhere to avoid allocations.Mara Bos-1/+4
2021-02-24Reuse `std::sys::unsupported::pipe` on `hermit`Christiaan Dirkx-0/+1
2020-11-07Rollup merge of #74979 - maekawatoshiki:fix, r=Mark-SimulacrumYuki Okushi-0/+2
`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit Partial fix of #73904. This encloses ``unsafe`` operations in ``unsafe fn`` in ``sys/hermit``. Some unsafe blocks are not well documented because some system-based functions lack documents.
2020-10-12reuse implementation of the system provider "unsupported"Stefan Lankes-0/+1
2020-08-21Add `#![allow(unsafe_op_in_unsafe_fn)]` in sys/hermitmaekawatoshiki-0/+2
2020-08-21Revert "`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit"maekawatoshiki-15/+7
This reverts commit 7cae9e8c88e468e94c157d9aaee4b8e3cf90b9a4.
2020-07-31`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermitmaekawatoshiki-7/+15
2020-07-28adjust remaining targetsStefan Lankes-1/+1
- fix commit 7dc3886 - previous commit doesn't adjust all targets
2020-07-27mv std libs to library/mark-0/+146