File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ enum ParsedNameDirective {
24
24
25
25
/// Properties which must be known very early, before actually running
26
26
/// the test.
27
+ #[ derive( Default ) ]
27
28
pub struct EarlyProps {
28
29
pub ignore : bool ,
29
30
pub should_fail : bool ,
@@ -39,14 +40,7 @@ impl EarlyProps {
39
40
}
40
41
41
42
pub fn from_reader < R : Read > ( config : & Config , testfile : & Path , rdr : R ) -> Self {
42
- 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
-
43
+ let mut props = EarlyProps :: default ( ) ;
50
44
let rustc_has_profiler_support = env:: var_os ( "RUSTC_PROFILER_SUPPORT" ) . is_some ( ) ;
51
45
let rustc_has_sanitizer_support = env:: var_os ( "RUSTC_SANITIZER_SUPPORT" ) . is_some ( ) ;
52
46
You can’t perform that action at this time.
0 commit comments