Skip to content

Commit 1b1ed93

Browse files
committed
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
1 parent e338604 commit 1b1ed93

File tree

2 files changed

+3369
-3361
lines changed

2 files changed

+3369
-3361
lines changed

clippy_dev/src/lintcheck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl std::fmt::Display for ClippyWarning {
8989
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9090
writeln!(
9191
f,
92-
r#"{}-{}/{}:{}:{} {} "{}""#,
92+
r#"target/lintcheck/sources/{}-{}/{}:{}:{} {} "{}""#,
9393
&self.crate_name, &self.crate_version, &self.file, &self.line, &self.column, &self.linttype, &self.message
9494
)
9595
}

0 commit comments

Comments
 (0)