diff options
| author | Samuel E. Moelius III <sam@moeli.us> | 2022-01-30 10:25:40 -0500 |
|---|---|---|
| committer | Samuel E. Moelius III <sam@moeli.us> | 2022-01-30 10:25:40 -0500 |
| commit | 96d96a7ac48cd8becf3133035ab0cf0717a4cf75 (patch) | |
| tree | 830a452e7f7c621f4f480966f0c96672905c9f0e /src/doc | |
| parent | a00e130dae74a213338e2b095ec855156d8f3d8a (diff) | |
Use `optflag` for `--report-time`
Essentially, what is described here: https://github.com/rust-lang/rust/issues/64888#issuecomment-1008047228 There is one difference. The comment proposes to add a `--report-time-color` option. This change instead uses libtest's existing `--color` option for that purpose.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustc/src/tests/index.md | 2 | ||||
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/report-time.md | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/doc/rustc/src/tests/index.md b/src/doc/rustc/src/tests/index.md index 23a9f31e8e7..0e0eb85db74 100644 --- a/src/doc/rustc/src/tests/index.md +++ b/src/doc/rustc/src/tests/index.md @@ -267,7 +267,7 @@ Controls the format of the output. Valid options: Writes the results of the tests to the given file. -#### `--report-time` _FORMAT_ +#### `--report-time` ⚠️ 🚧 This option is [unstable](#unstable-options), and requires the `-Z unstable-options` flag. See [tracking issue diff --git a/src/doc/unstable-book/src/compiler-flags/report-time.md b/src/doc/unstable-book/src/compiler-flags/report-time.md index ac0093f77ae..9e6a1fb0005 100644 --- a/src/doc/unstable-book/src/compiler-flags/report-time.md +++ b/src/doc/unstable-book/src/compiler-flags/report-time.md @@ -21,11 +21,8 @@ Sample usage command: Available options: ```sh ---report-time [plain|colored] - Show execution time of each test. Available values: - plain = do not colorize the execution time (default); - colored = colorize output according to the `color` - parameter value; +--report-time + Show execution time of each test. Threshold values for colorized output can be configured via `RUST_TEST_TIME_UNIT`, `RUST_TEST_TIME_INTEGRATION` |
