@@ -85,12 +85,12 @@ pub fn setup(config: &Config, profile: Profile) {
85
85
let path = & config. config ;
86
86
87
87
if path. exists ( ) {
88
- println ! (
88
+ eprintln ! (
89
89
"error: you asked `x.py` to setup a new config file, but one already exists at `{}`" ,
90
90
path. display( )
91
91
) ;
92
- println ! ( "help: try adding `profile = \" {}\" ` at the top of {}" , profile, path. display( ) ) ;
93
- println ! (
92
+ eprintln ! ( "help: try adding `profile = \" {}\" ` at the top of {}" , profile, path. display( ) ) ;
93
+ eprintln ! (
94
94
"note: this will use the configuration in {}" ,
95
95
profile. include_path( & config. src) . display( )
96
96
) ;
@@ -115,7 +115,7 @@ pub fn setup(config: &Config, profile: Profile) {
115
115
println ! ( ) ;
116
116
117
117
if !rustup_installed ( ) && profile != Profile :: User {
118
- println ! ( "`rustup` is not installed; cannot link `stage1` toolchain" ) ;
118
+ eprintln ! ( "`rustup` is not installed; cannot link `stage1` toolchain" ) ;
119
119
} else if stage_dir_exists ( & stage_path[ ..] ) {
120
120
attempt_toolchain_link ( & stage_path[ ..] ) ;
121
121
}
@@ -173,7 +173,7 @@ fn attempt_toolchain_link(stage_path: &str) {
173
173
}
174
174
175
175
if !ensure_stage1_toolchain_placeholder_exists ( stage_path) {
176
- println ! (
176
+ eprintln ! (
177
177
"Failed to create a template for stage 1 toolchain or confirm that it already exists"
178
178
) ;
179
179
return ;
@@ -184,8 +184,8 @@ fn attempt_toolchain_link(stage_path: &str) {
184
184
"Added `stage1` rustup toolchain; try `cargo +stage1 build` on a separate rust project to run a newly-built toolchain"
185
185
) ;
186
186
} else {
187
- println ! ( "`rustup` failed to link stage 1 build to `stage1` toolchain" ) ;
188
- println ! (
187
+ eprintln ! ( "`rustup` failed to link stage 1 build to `stage1` toolchain" ) ;
188
+ eprintln ! (
189
189
"To manually link stage 1 build to `stage1` toolchain, run:\n
190
190
`rustup toolchain link stage1 {}`" ,
191
191
& stage_path
@@ -292,8 +292,8 @@ pub fn interactive_path() -> io::Result<Profile> {
292
292
break match parse_with_abbrev ( & input) {
293
293
Ok ( profile) => profile,
294
294
Err ( err) => {
295
- println ! ( "error: {}" , err) ;
296
- println ! ( "note: press Ctrl+C to exit" ) ;
295
+ eprintln ! ( "error: {}" , err) ;
296
+ eprintln ! ( "note: press Ctrl+C to exit" ) ;
297
297
continue ;
298
298
}
299
299
} ;
@@ -320,8 +320,8 @@ undesirable, simply delete the `pre-push` file from .git/hooks."
320
320
"y" | "yes" => true ,
321
321
"n" | "no" | "" => false ,
322
322
_ => {
323
- println ! ( "error: unrecognized option '{}'" , input. trim( ) ) ;
324
- println ! ( "note: press Ctrl+C to exit" ) ;
323
+ eprintln ! ( "error: unrecognized option '{}'" , input. trim( ) ) ;
324
+ eprintln ! ( "note: press Ctrl+C to exit" ) ;
325
325
continue ;
326
326
}
327
327
} ;
@@ -337,7 +337,7 @@ undesirable, simply delete the `pre-push` file from .git/hooks."
337
337
) ) ;
338
338
let dst = git. join ( "hooks" ) . join ( "pre-push" ) ;
339
339
match fs:: hard_link ( src, & dst) {
340
- Err ( e) => println ! (
340
+ Err ( e) => eprintln ! (
341
341
"error: could not create hook {}: do you already have the git hook installed?\n {}" ,
342
342
dst. display( ) ,
343
343
e
0 commit comments