about summary refs log tree commit diff
path: root/clippy_dev
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-02-27 12:29:13 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-02-28 22:59:45 +0100
commit1b1ed9359eef9f69c4d384ad1592ba5e1b1d83af (patch)
treeddf90187ca792b6dacd6a191c776737e89d9c80f /clippy_dev
parente3386041a291c25d692e29d28dbb8fbfd7ef9c5a (diff)
downloadrust-1b1ed9359eef9f69c4d384ad1592ba5e1b1d83af.tar.gz
rust-1b1ed9359eef9f69c4d384ad1592ba5e1b1d83af.zip
lintcheck: put the full paths (target/lintcheck/sources/<crate>...) to the source files of a warning into the lintcheck log
This is more convenient when reviewing new lint warnings that popped up in the logs
Diffstat (limited to 'clippy_dev')
-rw-r--r--clippy_dev/src/lintcheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_dev/src/lintcheck.rs b/clippy_dev/src/lintcheck.rs
index 24af64626cb..622dad1740b 100644
--- a/clippy_dev/src/lintcheck.rs
+++ b/clippy_dev/src/lintcheck.rs
@@ -89,7 +89,7 @@ impl std::fmt::Display for ClippyWarning {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         writeln!(
             f,
-            r#"{}-{}/{}:{}:{} {} "{}""#,
+            r#"target/lintcheck/sources/{}-{}/{}:{}:{} {} "{}""#,
             &self.crate_name, &self.crate_version, &self.file, &self.line, &self.column, &self.linttype, &self.message
         )
     }