@@ -134,7 +134,7 @@ impl Step for Profile {
134134 t ! ( fs:: remove_file( path) ) ;
135135 }
136136 _ => {
137- eprintln ! ( "Exiting." ) ;
137+ println ! ( "Exiting." ) ;
138138 crate :: exit!( 1 ) ;
139139 }
140140 }
@@ -184,15 +184,15 @@ pub fn setup(config: &Config, profile: Profile) {
184184 Profile :: Dist => & [ "dist" , "build" ] ,
185185 } ;
186186
187- eprintln ! ( ) ;
187+ println ! ( ) ;
188188
189- eprintln ! ( "To get started, try one of the following commands:" ) ;
189+ println ! ( "To get started, try one of the following commands:" ) ;
190190 for cmd in suggestions {
191- eprintln ! ( "- `x.py {cmd}`" ) ;
191+ println ! ( "- `x.py {cmd}`" ) ;
192192 }
193193
194194 if profile != Profile :: Dist {
195- eprintln ! (
195+ println ! (
196196 "For more suggestions, see https://rustc-dev-guide.rust-lang.org/building/suggested.html"
197197 ) ;
198198 }
@@ -224,7 +224,7 @@ fn setup_config_toml(path: &PathBuf, profile: Profile, config: &Config) {
224224 t ! ( fs:: write( path, settings) ) ;
225225
226226 let include_path = profile. include_path ( & config. src ) ;
227- eprintln ! ( "`x.py` will now use the configuration at {}" , include_path. display( ) ) ;
227+ println ! ( "`x.py` will now use the configuration at {}" , include_path. display( ) ) ;
228228}
229229
230230/// Creates a toolchain link for stage1 using `rustup`
@@ -256,7 +256,7 @@ impl Step for Link {
256256 }
257257
258258 if !rustup_installed ( builder) {
259- eprintln ! ( "WARNING: `rustup` is not installed; Skipping `stage1` toolchain linking." ) ;
259+ println ! ( "WARNING: `rustup` is not installed; Skipping `stage1` toolchain linking." ) ;
260260 return ;
261261 }
262262
@@ -296,7 +296,7 @@ fn attempt_toolchain_link(builder: &Builder<'_>, stage_path: &str) {
296296 }
297297
298298 if try_link_toolchain ( builder, stage_path) {
299- eprintln ! (
299+ println ! (
300300 "Added `stage1` rustup toolchain; try `cargo +stage1 build` on a separate rust project to run a newly-built toolchain"
301301 ) ;
302302 } else {
@@ -321,14 +321,14 @@ fn toolchain_is_linked(builder: &Builder<'_>) -> bool {
321321 return false ;
322322 }
323323 // The toolchain has already been linked.
324- eprintln ! (
324+ println ! (
325325 "`stage1` toolchain already linked; not attempting to link `stage1` toolchain"
326326 ) ;
327327 }
328328 None => {
329329 // In this case, we don't know if the `stage1` toolchain has been linked;
330330 // but `rustup` failed, so let's not go any further.
331- eprintln ! (
331+ println ! (
332332 "`rustup` failed to list current toolchains; not attempting to link `stage1` toolchain"
333333 ) ;
334334 }
@@ -389,9 +389,9 @@ pub fn interactive_path() -> io::Result<Profile> {
389389 input. parse ( )
390390 }
391391
392- eprintln ! ( "Welcome to the Rust project! What do you want to do with x.py?" ) ;
392+ println ! ( "Welcome to the Rust project! What do you want to do with x.py?" ) ;
393393 for ( ( letter, _) , profile) in abbrev_all ( ) {
394- eprintln ! ( "{}) {}: {}" , letter, profile, profile. purpose( ) ) ;
394+ println ! ( "{}) {}: {}" , letter, profile, profile. purpose( ) ) ;
395395 }
396396 let template = loop {
397397 print ! (
@@ -488,15 +488,15 @@ fn install_git_hook_maybe(builder: &Builder<'_>, config: &Config) -> io::Result<
488488 return Ok ( ( ) ) ;
489489 }
490490
491- eprintln ! (
491+ println ! (
492492 "\n Rust's CI will automatically fail if it doesn't pass `tidy`, the internal tool for ensuring code quality.
493493If you'd like, x.py can install a git hook for you that will automatically run `test tidy` before
494494pushing your code to ensure your code is up to par. If you decide later that this behavior is
495495undesirable, simply delete the `pre-push` file from .git/hooks."
496496 ) ;
497497
498498 if prompt_user ( "Would you like to install the git hook?: [y/N]" ) ? != Some ( PromptResult :: Yes ) {
499- eprintln ! ( "Ok, skipping installation!" ) ;
499+ println ! ( "Ok, skipping installation!" ) ;
500500 return Ok ( ( ) ) ;
501501 }
502502 if !hooks_dir. exists ( ) {
@@ -513,7 +513,7 @@ undesirable, simply delete the `pre-push` file from .git/hooks."
513513 ) ;
514514 return Err ( e) ;
515515 }
516- Ok ( _) => eprintln ! ( "Linked `src/etc/pre-push.sh` to `.git/hooks/pre-push`" ) ,
516+ Ok ( _) => println ! ( "Linked `src/etc/pre-push.sh` to `.git/hooks/pre-push`" ) ,
517517 } ;
518518 Ok ( ( ) )
519519}
@@ -654,7 +654,7 @@ impl Step for Editor {
654654 if let Some ( editor_kind) = editor_kind {
655655 while !t ! ( create_editor_settings_maybe( config, editor_kind. clone( ) ) ) { }
656656 } else {
657- eprintln ! ( "Ok, skipping editor setup!" ) ;
657+ println ! ( "Ok, skipping editor setup!" ) ;
658658 }
659659 }
660660 Err ( e) => eprintln ! ( "Could not determine the editor: {e}" ) ,
@@ -687,7 +687,7 @@ fn create_editor_settings_maybe(config: &Config, editor: EditorKind) -> io::Resu
687687 mismatched_settings = Some ( false ) ;
688688 }
689689 }
690- eprintln ! (
690+ println ! (
691691 "\n x.py can automatically install the recommended `{settings_filename}` file for rustc development"
692692 ) ;
693693
@@ -706,7 +706,7 @@ fn create_editor_settings_maybe(config: &Config, editor: EditorKind) -> io::Resu
706706 Some ( PromptResult :: Yes ) => true ,
707707 Some ( PromptResult :: Print ) => false ,
708708 _ => {
709- eprintln ! ( "Ok, skipping settings!" ) ;
709+ println ! ( "Ok, skipping settings!" ) ;
710710 return Ok ( true ) ;
711711 }
712712 } ;
@@ -733,9 +733,9 @@ fn create_editor_settings_maybe(config: &Config, editor: EditorKind) -> io::Resu
733733 _ => "Created" ,
734734 } ;
735735 fs:: write ( & settings_path, editor. settings_template ( ) ) ?;
736- eprintln ! ( "{verb} `{}`" , settings_filename) ;
736+ println ! ( "{verb} `{}`" , settings_filename) ;
737737 } else {
738- eprintln ! ( "\n {}" , editor. settings_template( ) ) ;
738+ println ! ( "\n {}" , editor. settings_template( ) ) ;
739739 }
740740 Ok ( should_create)
741741}
0 commit comments