Skip to content

Commit 426b63f

Browse files
Make short-error format GNU compatible
1 parent 177337d commit 426b63f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_errors/emitter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ impl EmitterWriter {
10471047
}
10481048
} else {
10491049
buffer.prepend(0,
1050-
&format!("{}:{}:{} - ",
1050+
&format!("{}:{}:{}: ",
10511051
loc.file.name,
10521052
cm.doctest_offset_line(loc.line),
10531053
loc.col.0 + 1),

src/test/ui/short-error-format.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$DIR/short-error-format.rs:16:9 - error[E0308]: mismatched types
2-
$DIR/short-error-format.rs:18:7 - error[E0599]: no method named `salut` found for type `u32` in the current scope
1+
$DIR/short-error-format.rs:16:9: error[E0308]: mismatched types
2+
$DIR/short-error-format.rs:18:7: error[E0599]: no method named `salut` found for type `u32` in the current scope
33
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)