about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/rustdoc.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-05-23 13:34:19 +0200
committerGitHub <noreply@github.com>2025-05-23 13:34:19 +0200
commitdfa3110ed4c40e0744a71cb3964c4161f3457ae2 (patch)
tree7103e17daf9a482d63c3f19a58c024a4d6f184cd /compiler/rustc_resolve/src/rustdoc.rs
parent036607ebbae2dd8b84c9dfee3391f52ff01f3ea6 (diff)
parentdcef449e2c7209d2e591f2c1c4791eb094321929 (diff)
downloadrust-dfa3110ed4c40e0744a71cb3964c4161f3457ae2.tar.gz
rust-dfa3110ed4c40e0744a71cb3964c4161f3457ae2.zip
Rollup merge of #141109 - oconnor663:pipe_example, r=Mark-Simulacrum
discuss deadlocks in the std::io::pipe() example

I think it's important to discuss deadlocks in examples of how to use pipes. The current example does include an explicit `drop()`, but it also implicitly relies on the fact that the `Command` object is temporary, so that it drops its copy of `pong_tx`. This sort of thing tends to trip people up when they use pipes for the first time. I might've gone overboard with the comments in this version, but I'm curious what folks think.
Diffstat (limited to 'compiler/rustc_resolve/src/rustdoc.rs')
0 files changed, 0 insertions, 0 deletions