diff options
| author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2021-02-18 14:13:38 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2021-02-18 14:13:38 +0200 |
| commit | 6165d1cc72f8af55b3ef16ad81273b80876f9518 (patch) | |
| tree | 0baf5b5db99a2755d3e7fb1b654fcedec1e4aa7c /compiler/rustc_interface/src | |
| parent | 25a2c13e9d19c18d5f3c2656e3d2dda086cb023b (diff) | |
| download | rust-6165d1cc72f8af55b3ef16ad81273b80876f9518.tar.gz rust-6165d1cc72f8af55b3ef16ad81273b80876f9518.zip | |
Print -Ztime-passes (and misc stats/logs) on stderr, not stdout.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 544da4cd9aa..ed5061125ba 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -64,8 +64,8 @@ pub fn parse<'a>(sess: &'a Session, input: &Input) -> PResult<'a, ast::Crate> { } if sess.opts.debugging_opts.input_stats { - println!("Lines of code: {}", sess.source_map().count_lines()); - println!("Pre-expansion node count: {}", count_nodes(&krate)); + eprintln!("Lines of code: {}", sess.source_map().count_lines()); + eprintln!("Pre-expansion node count: {}", count_nodes(&krate)); } if let Some(ref s) = sess.opts.debugging_opts.show_span { @@ -394,7 +394,7 @@ fn configure_and_expand_inner<'a>( // Done with macro expansion! if sess.opts.debugging_opts.input_stats { - println!("Post-expansion node count: {}", count_nodes(&krate)); + eprintln!("Post-expansion node count: {}", count_nodes(&krate)); } if sess.opts.debugging_opts.hir_stats { |
