rust/library/std/src
bors cf932aa584 Auto merge of #86847 - tlyu:stdin-forwarders, r=joshtriplett
add `Stdin::lines`, `Stdin::split` forwarder methods

Add forwarder methods `Stdin::lines` and `Stdin::split`, which consume
and lock a `Stdin` handle, and forward on to the corresponding `BufRead`
methods. This should make it easier for beginners to use those iterator
constructors without explicitly dealing with locks or lifetimes.

Replaces #86412.
~~Based on #86846 to get the tracking issue number for the `stdio_locked` feature.~~ Rebased after merge, so it's only one commit now.

r? `@joshtriplett`
`@rustbot` label +A-io +C-enhancement +D-newcomer-roadblock +T-libs-api
2021-07-21 06:06:37 +00:00
..
backtrace Add Frames iterator for Backtrace 2021-01-23 11:56:33 -06:00
collections Added diagnostic items to structs and traits for Clippy 2021-07-15 23:57:02 +02:00
env std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
error std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f32 More lerp tests, altering lerp docs 2021-06-13 14:00:15 -04:00
f64 More lerp tests, altering lerp docs 2021-06-13 14:00:15 -04:00
ffi Remove "length" doc aliases 2021-06-30 20:28:51 +01:00
fs Make tests pass on old macos 2021-07-10 12:59:25 -07:00
io Auto merge of #86847 - tlyu:stdin-forwarders, r=joshtriplett 2021-07-21 06:06:37 +00:00
lazy Upgrade wasm32 image to Ubuntu 20.04 2021-02-06 13:05:56 +01:00
net Auto merge of #85746 - m-ou-se:io-error-other, r=joshtriplett 2021-07-02 09:01:42 +00:00
num rustc_expand: Mark inner #![test] attributes as soft-unstable 2020-11-20 19:35:03 +03:00
os Add tracking issue number to wasi_ext 2021-07-12 15:01:39 +02:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path Refactor parse_prefix on Windows 2020-11-07 16:15:48 +01:00
prelude Move asm! and global_asm! to core::arch 2021-07-18 18:30:58 -04:00
process Test that env_clear works on Windows 2021-06-24 09:32:24 +01:00
sync Rollup merge of #86783 - mark-i-m:mutex-drop-unsized, r=Xanewok 2021-07-02 06:20:33 +09:00
sys x.py fmt 2021-07-17 18:31:51 -07:00
sys_common Merge sys_common::bytestring into os_str_bytes 2021-06-21 12:57:14 +02:00
thread rename variable 2021-07-10 14:14:09 +02:00
time Duration::zero() -> Duration::ZERO 2020-10-21 20:44:03 -07:00
alloc.rs Rename rterr to rtprintpanic 2021-05-19 15:52:09 +02:00
ascii.rs Convert many files to intra-doc links 2020-09-02 17:37:40 -04:00
backtrace.rs make both panic display formats collapse frames 2021-06-07 21:18:55 +02:00
env.rs Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
error.rs Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett 2021-06-15 17:40:03 +09:00
f32.rs Clarify behaviour of f64 and f32::sqrt when argument is negative zero 2021-07-07 18:22:17 +01:00
f64.rs Clarify behaviour of f64 and f32::sqrt when argument is negative zero 2021-07-07 18:22:17 +01:00
fs.rs Rollup merge of #87170 - xFrednet:clippy-5393-add-diagnostic-items, r=Manishearth,oli-obk 2021-07-18 14:21:57 +09:00
keyword_docs.rs Fix a few misspellings. 2021-06-25 13:18:56 -07:00
lazy.rs Use DebugStruct::finish_non_exhaustive() in std. 2021-03-27 13:29:23 +01:00
lib.rs Move asm! and global_asm! to core::arch 2021-07-18 18:30:58 -04:00
macros.rs expand: Support helper attributes for built-in derive macros 2021-07-13 21:59:22 +03:00
num.rs postpone stabilizaton by one release 2021-06-22 10:20:56 +01:00
panic.rs Use diagnostic items to check for Send, UnwindSafe and RefUnwindSafe traits 2021-06-29 17:47:57 -04:00
panicking.rs Rollup merge of #84687 - a1phyr:improve_rwlock, r=m-ou-se 2021-06-10 11:02:10 +09:00
path.rs Auto merge of #85747 - maxwase:path-symlinks-methods, r=m-ou-se 2021-06-18 17:13:19 +00:00
primitive_docs.rs Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
process.rs s/die/terminate/ in abort documentation. 2021-07-05 12:43:45 +02:00
rt.rs Change entry point to 🛡️ against 💥 💥-payloads 2021-06-19 11:46:56 +03:00
time.rs Use HTTPS links where possible 2021-06-23 16:26:46 -04:00