File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,9 @@ pub struct Config {
226
226
/// created in `/<build_base>/rustfix_missing_coverage.txt`
227
227
pub rustfix_coverage : bool ,
228
228
229
+ /// The default Rust edition
230
+ pub edition : Option < String > ,
231
+
229
232
// Configuration for various run-make tests frobbing things like C compilers
230
233
// or querying about various LLVM component information.
231
234
pub cc : String ,
@@ -416,6 +419,7 @@ impl Default for Config {
416
419
llvm_components : "llvm-components" . to_string ( ) ,
417
420
llvm_cxxflags : "llvm-cxxflags" . to_string ( ) ,
418
421
nodejs : None ,
422
+ edition : None ,
419
423
}
420
424
}
421
425
}
Original file line number Diff line number Diff line change @@ -627,7 +627,7 @@ impl Config {
627
627
}
628
628
629
629
fn parse_edition ( & self , line : & str ) -> Option < String > {
630
- self . parse_name_value_directive ( line, "edition" )
630
+ self . parse_name_value_directive ( line, "edition" ) . or_else ( || self . edition . clone ( ) )
631
631
}
632
632
}
633
633
You can’t perform that action at this time.
0 commit comments