@@ -85,12 +85,12 @@ pub fn setup(config: &Config, profile: Profile) {
8585 let path = & config. config ;
8686
8787 if path. exists ( ) {
88- println ! (
88+ eprintln ! (
8989 "error: you asked `x.py` to setup a new config file, but one already exists at `{}`" ,
9090 path. display( )
9191 ) ;
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 ! (
9494 "note: this will use the configuration in {}" ,
9595 profile. include_path( & config. src) . display( )
9696 ) ;
@@ -115,7 +115,7 @@ pub fn setup(config: &Config, profile: Profile) {
115115 println ! ( ) ;
116116
117117 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" ) ;
119119 } else if stage_dir_exists ( & stage_path[ ..] ) {
120120 attempt_toolchain_link ( & stage_path[ ..] ) ;
121121 }
@@ -173,7 +173,7 @@ fn attempt_toolchain_link(stage_path: &str) {
173173 }
174174
175175 if !ensure_stage1_toolchain_placeholder_exists ( stage_path) {
176- println ! (
176+ eprintln ! (
177177 "Failed to create a template for stage 1 toolchain or confirm that it already exists"
178178 ) ;
179179 return ;
@@ -184,8 +184,8 @@ fn attempt_toolchain_link(stage_path: &str) {
184184 "Added `stage1` rustup toolchain; try `cargo +stage1 build` on a separate rust project to run a newly-built toolchain"
185185 ) ;
186186 } 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 ! (
189189 "To manually link stage 1 build to `stage1` toolchain, run:\n
190190 `rustup toolchain link stage1 {}`" ,
191191 & stage_path
@@ -292,8 +292,8 @@ pub fn interactive_path() -> io::Result<Profile> {
292292 break match parse_with_abbrev ( & input) {
293293 Ok ( profile) => profile,
294294 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" ) ;
297297 continue ;
298298 }
299299 } ;
@@ -320,8 +320,8 @@ undesirable, simply delete the `pre-push` file from .git/hooks."
320320 "y" | "yes" => true ,
321321 "n" | "no" | "" => false ,
322322 _ => {
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" ) ;
325325 continue ;
326326 }
327327 } ;
@@ -337,7 +337,7 @@ undesirable, simply delete the `pre-push` file from .git/hooks."
337337 ) ) ;
338338 let dst = git. join ( "hooks" ) . join ( "pre-push" ) ;
339339 match fs:: hard_link ( src, & dst) {
340- Err ( e) => println ! (
340+ Err ( e) => eprintln ! (
341341 "error: could not create hook {}: do you already have the git hook installed?\n {}" ,
342342 dst. display( ) ,
343343 e
0 commit comments