@@ -212,6 +212,28 @@ pub struct Config {
212212 pub out : PathBuf ,
213213}
214214
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+
215237#[ derive( Clone , Debug ) ]
216238pub enum RustfmtState {
217239 SystemToolchain ( PathBuf ) ,
@@ -720,28 +742,6 @@ define_config! {
720742 }
721743}
722744
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-
745745impl Config {
746746 pub fn default_opts ( ) -> Config {
747747 let mut config = Config :: default ( ) ;
0 commit comments