Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/codegen.rs')
-rw-r--r--xtask/src/codegen.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs
index e84c259e97..8165a2a12b 100644
--- a/xtask/src/codegen.rs
+++ b/xtask/src/codegen.rs
@@ -117,7 +117,13 @@ impl fmt::Display for Location {
let path = self.file.strip_prefix(project_root()).unwrap().display().to_string();
let path = path.replace('\\', "/");
let name = self.file.file_name().unwrap();
- write!(f, " [{}](/{}#{}) ", name.to_str().unwrap(), path, self.line)
+ write!(
+ f,
+ " [{}](https://github.com/rust-lang/rust-analyzer/blob/master/{}#L{}) ",
+ name.to_str().unwrap(),
+ path,
+ self.line
+ )
}
}