summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-12 10:48:07 +0000
committerbors <bors@rust-lang.org>2022-07-12 10:48:07 +0000
commit8fdcb90c6bd0b4a285e8ee53c3e32176659cb1e8 (patch)
tree0d2040b4e4ab5edd85c632dfd96806846a30f599
parentfb8d512a6a4ab7c1b1b0bb400ddb06f435bfc2a2 (diff)
parent18813fbdd10434d90b6a19d7f4067be11866e4b1 (diff)
downloadrust-libc-8fdcb90c6bd0b4a285e8ee53c3e32176659cb1e8.tar.gz
Auto merge of #2846 - joshtriplett:style-quickfix, r=Amanieu
style: Format errors so that editors can jump to file/line With this change, it's now possible to do: ``` ./style src > e vim -q e ```
-rw-r--r--ci/style.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/style.rs b/ci/style.rs
index e21a40cf1d..07b2a754bc 100644
--- a/ci/style.rs
+++ b/ci/style.rs
@@ -196,6 +196,6 @@ impl State {
impl Errors {
fn error(&mut self, path: &Path, line: usize, msg: &str) {
self.errs = true;
- println!("{}:{} - {}", path.display(), line + 1, msg);
+ println!("{}:{}: {}", path.display(), line + 1, msg);
}
}