about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-11 22:20:40 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-07-18 11:54:39 +0200
commit893e07e1b0a93897bb931d8495f02ab731bd5a32 (patch)
treed11e982df0ebd6770ec2091d57c5d29833ae1fd9 /src
parent111cca1fa76e13956610cae02da13758daed8ddf (diff)
downloadrust-893e07e1b0a93897bb931d8495f02ab731bd5a32.tar.gz
rust-893e07e1b0a93897bb931d8495f02ab731bd5a32.zip
Add doc for --nocapture
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustdoc/src/command-line-arguments.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/command-line-arguments.md b/src/doc/rustdoc/src/command-line-arguments.md
index 2e4016e24bc..c8af369a969 100644
--- a/src/doc/rustdoc/src/command-line-arguments.md
+++ b/src/doc/rustdoc/src/command-line-arguments.md
@@ -417,3 +417,10 @@ This flag is **deprecated** and **has no effect**.
 Rustdoc only supports Rust source code and Markdown input formats. If the
 file ends in `.md` or `.markdown`, `rustdoc` treats it as a Markdown file.
 Otherwise, it assumes that the input file is Rust.
+
+## `--nocapture`
+
+When this flag is used with `--test`, the output (stdout and stderr) of your tests won't be
+captured by rustdoc. Instead, the output will be directed to your terminal,
+as if you had run the test executable manually. This is especially useful
+for debugging your tests!