about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-06-03 07:38:55 +0200
committerPhilipp Hansch <dev@phansch.net>2019-06-04 18:46:00 +0200
commitbfe5d9796b38fdecab6cd7afd28e0a7f23e4915a (patch)
tree3da603faa127b27b1eefe657d85ba39595bf3455
parent4a6b91cd66e7293af2ff4120b510fab1818b45cf (diff)
downloadrust-bfe5d9796b38fdecab6cd7afd28e0a7f23e4915a.tar.gz
rust-bfe5d9796b38fdecab6cd7afd28e0a7f23e4915a.zip
eprint -> eprintln to add trailing newline
-rw-r--r--src/librustc_errors/annotate_rs_emitter.rs2
-rw-r--r--src/test/ui/annotate-snippet/missing-type.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_errors/annotate_rs_emitter.rs b/src/librustc_errors/annotate_rs_emitter.rs
index f3c55ae79f7..de42389de74 100644
--- a/src/librustc_errors/annotate_rs_emitter.rs
+++ b/src/librustc_errors/annotate_rs_emitter.rs
@@ -206,7 +206,7 @@ impl AnnotateRsEmitterWriter {
             // FIXME(#59346): Figure out if we can _always_ print to stderr or not.
             // `emitter.rs` has the `Destination` enum that lists various possible output
             // destinations.
-            eprint!("{}", dlf.format(&dl));
+            eprintln!("{}", dlf.format(&dl));
         };
     }
 }
diff --git a/src/test/ui/annotate-snippet/missing-type.stderr b/src/test/ui/annotate-snippet/missing-type.stderr
index 1e84929d3c5..8857ae7d850 100644
--- a/src/test/ui/annotate-snippet/missing-type.stderr
+++ b/src/test/ui/annotate-snippet/missing-type.stderr
@@ -3,4 +3,4 @@ error[E0412]: cannot find type `Iter` in this scope
   |
 4 |     let x: Iter;
   |            ^^^^ not found in this scope
-  |
\ No newline at end of file
+  |