about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-03 10:40:53 +0000
committerbors <bors@rust-lang.org>2021-07-03 10:40:53 +0000
commita8b8558f083d86247ef3260ebb4f97b276cdbf73 (patch)
treec57703fb7c819e8655b0eb624690079d74a1cf34 /compiler/rustc_query_impl/src
parent701496384fd2d46557b3f013b50860c69c9848cc (diff)
parentc58ceb7a42b5e06e2d7ba5fe727b05af5d073d3e (diff)
downloadrust-a8b8558f083d86247ef3260ebb4f97b276cdbf73.tar.gz
rust-a8b8558f083d86247ef3260ebb4f97b276cdbf73.zip
Auto merge of #86799 - tlyu:stdio-locked, r=joshtriplett
add owned locked stdio handles

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.

Fixes #85383; enables #86412.

r? `@joshtriplett`
`@rustbot` label +A-io +C-enhancement +D-newcomer-roadblock +T-libs-api
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions