Skip to content

Commit b8d5a3a

Browse files
committed
Auto merge of #111348 - ozkanonur:remove-hardcoded-rustdoc-flags, r=albertlarsan68,oli-obk
new tool `rustdoc-gui-test` Implements new tool `rustdoc-gui-test` that allows using compiletest headers for `rustdoc-gui` tests.
2 parents 07397b3 + bed4668 commit b8d5a3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/src/options.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,21 @@ pub enum ShouldPanic {
1616
}
1717

1818
/// Whether should console output be colored or not
19-
#[derive(Copy, Clone, Debug)]
19+
#[derive(Copy, Clone, Default, Debug)]
2020
pub enum ColorConfig {
21+
#[default]
2122
AutoColor,
2223
AlwaysColor,
2324
NeverColor,
2425
}
2526

2627
/// Format of the test results output
27-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
28+
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq)]
2829
pub enum OutputFormat {
2930
/// Verbose output
3031
Pretty,
3132
/// Quiet output
33+
#[default]
3234
Terse,
3335
/// JSON output
3436
Json,

0 commit comments

Comments
 (0)