]> git.lizzy.rs Git - rust.git/commitdiff
Make short-error format GNU compatible
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 3 May 2018 21:18:49 +0000 (23:18 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 31 May 2018 18:09:27 +0000 (20:09 +0200)
src/librustc_errors/emitter.rs
src/test/ui/short-error-format.stderr

index 4d1d33e1325b8b550286205eac062e2675114c9c..f65acf08c86d8f3ad109829c5b264a4c4fe5efa6 100644 (file)
@@ -1047,7 +1047,7 @@ fn emit_message_default(&mut self,
                     }
                 } else {
                     buffer.prepend(0,
-                                   &format!("{}:{}:{} - ",
+                                   &format!("{}:{}:{}: ",
                                             loc.file.name,
                                             cm.doctest_offset_line(loc.line),
                                             loc.col.0 + 1),
index debe60b463226d8f5d9bc8da3e3930f24b580b5d..f7461b837bdc14bd354f420f261aeb90cce48e3c 100644 (file)
@@ -1,3 +1,3 @@
-$DIR/short-error-format.rs:16:9 - error[E0308]: mismatched types
-$DIR/short-error-format.rs:18:7 - error[E0599]: no method named `salut` found for type `u32` in the current scope
+$DIR/short-error-format.rs:16:9: error[E0308]: mismatched types
+$DIR/short-error-format.rs:18:7: error[E0599]: no method named `salut` found for type `u32` in the current scope
 error: aborting due to 2 previous errors