about summary refs log tree commit diff
path: root/library/std/src/io/stdio/tests.rs
AgeCommit message (Collapse)AuthorLines
2021-07-02stdio_locked: updates based on feedbackTaylor Yu-18/+3
Rename methods to `into_locked`. Remove type aliases for owned locks.
2021-07-01add owned locked stdio handlesTaylor Yu-0/+134
Add stderr_locked, stdin_locked, and stdout_locked free functions to obtain owned locked stdio handles in a single step. Also add into_lock methods to consume a stdio handle and return an owned lock. These methods will make it easier to use locked stdio handles without having to deal with lifetime problems or keeping bindings to the unlocked handles around.
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+47
Also doing fmt inplace as requested.