@@ -43,7 +43,7 @@ impl Tool {
43
43
}
44
44
45
45
fn update_stage0_file ( mut self ) -> Result < ( ) , Error > {
46
- const HEADER : & str = r#"# The configuration above this comment is editable, and can be changed
46
+ const COMMENTS : & str = r#"# The configuration above this comment is editable, and can be changed
47
47
# by forks of the repository if they have alternate values.
48
48
#
49
49
# The section below is generated by `./x.py run src/tools/bump-stage0`,
@@ -53,7 +53,7 @@ impl Tool {
53
53
# tool is executed.
54
54
"# ;
55
55
56
- let mut file_content = HEADER . to_owned ( ) ;
56
+ let mut file_content = String :: new ( ) ;
57
57
58
58
let Stage0Config {
59
59
dist_server,
@@ -64,7 +64,7 @@ impl Tool {
64
64
nightly_branch,
65
65
} = & self . config ;
66
66
67
- file_content. push_str ( & format ! ( "\n dist_server ={}" , dist_server) ) ;
67
+ file_content. push_str ( & format ! ( "dist_server ={}" , dist_server) ) ;
68
68
file_content. push_str ( & format ! ( "\n artifacts_server={}" , artifacts_server) ) ;
69
69
file_content. push_str ( & format ! (
70
70
"\n artifacts_with_llvm_assertions_server={}" ,
@@ -74,7 +74,8 @@ impl Tool {
74
74
file_content. push_str ( & format ! ( "\n git_repository={}" , git_repository) ) ;
75
75
file_content. push_str ( & format ! ( "\n nightly_branch={}" , nightly_branch) ) ;
76
76
77
- file_content. push_str ( "\n " ) ;
77
+ file_content. push_str ( "\n \n " ) ;
78
+ file_content. push_str ( COMMENTS ) ;
78
79
79
80
let compiler = self . detect_compiler ( ) ?;
80
81
file_content. push_str ( & format ! ( "\n compiler_date={}" , compiler. date) ) ;
0 commit comments