We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a154a9 commit db7ee95Copy full SHA for db7ee95
src/tools/compiletest/src/header.rs
@@ -24,6 +24,7 @@ enum ParsedNameDirective {
24
25
/// Properties which must be known very early, before actually running
26
/// the test.
27
+#[derive(Default)]
28
pub struct EarlyProps {
29
pub ignore: bool,
30
pub should_fail: bool,
@@ -39,14 +40,7 @@ impl EarlyProps {
39
40
}
41
42
pub fn from_reader<R: Read>(config: &Config, testfile: &Path, rdr: R) -> Self {
- let mut props = EarlyProps {
43
- ignore: false,
44
- should_fail: false,
45
- aux: Vec::new(),
46
- aux_crate: Vec::new(),
47
- revisions: vec![],
48
- };
49
-
+ let mut props = EarlyProps::default();
50
let rustc_has_profiler_support = env::var_os("RUSTC_PROFILER_SUPPORT").is_some();
51
let rustc_has_sanitizer_support = env::var_os("RUSTC_SANITIZER_SUPPORT").is_some();
52
0 commit comments