@@ -212,6 +212,28 @@ pub struct Config {
212
212
pub out : PathBuf ,
213
213
}
214
214
215
+ #[ derive( Default , Deserialize ) ]
216
+ #[ cfg_attr( test, derive( Clone ) ) ]
217
+ pub struct Stage0Metadata {
218
+ pub config : Stage0Config ,
219
+ pub checksums_sha256 : HashMap < String , String > ,
220
+ pub rustfmt : Option < RustfmtMetadata > ,
221
+ }
222
+ #[ derive( Default , Deserialize ) ]
223
+ #[ cfg_attr( test, derive( Clone ) ) ]
224
+ pub struct Stage0Config {
225
+ pub dist_server : String ,
226
+ pub artifacts_server : String ,
227
+ pub artifacts_with_llvm_assertions_server : String ,
228
+ pub git_merge_commit_email : String ,
229
+ }
230
+ #[ derive( Default , Deserialize ) ]
231
+ #[ cfg_attr( test, derive( Clone ) ) ]
232
+ pub struct RustfmtMetadata {
233
+ pub date : String ,
234
+ pub version : String ,
235
+ }
236
+
215
237
#[ derive( Clone , Debug ) ]
216
238
pub enum RustfmtState {
217
239
SystemToolchain ( PathBuf ) ,
@@ -720,28 +742,6 @@ define_config! {
720
742
}
721
743
}
722
744
723
- #[ derive( Default , Deserialize ) ]
724
- #[ cfg_attr( test, derive( Clone ) ) ]
725
- pub struct Stage0Metadata {
726
- pub config : Stage0Config ,
727
- pub checksums_sha256 : HashMap < String , String > ,
728
- pub rustfmt : Option < RustfmtMetadata > ,
729
- }
730
- #[ derive( Default , Deserialize ) ]
731
- #[ cfg_attr( test, derive( Clone ) ) ]
732
- pub struct Stage0Config {
733
- pub dist_server : String ,
734
- pub artifacts_server : String ,
735
- pub artifacts_with_llvm_assertions_server : String ,
736
- pub git_merge_commit_email : String ,
737
- }
738
- #[ derive( Default , Deserialize ) ]
739
- #[ cfg_attr( test, derive( Clone ) ) ]
740
- pub struct RustfmtMetadata {
741
- pub date : String ,
742
- pub version : String ,
743
- }
744
-
745
745
impl Config {
746
746
pub fn default_opts ( ) -> Config {
747
747
let mut config = Config :: default ( ) ;
0 commit comments