diff --git a/src/tools/rust-analyzer/xtask/src/codegen.rs b/src/tools/rust-analyzer/xtask/src/codegen.rs index 58a3fb644157..8165a2a12b08 100644 --- a/src/tools/rust-analyzer/xtask/src/codegen.rs +++ b/src/tools/rust-analyzer/xtask/src/codegen.rs @@ -119,7 +119,7 @@ impl fmt::Display for Location { let name = self.file.file_name().unwrap(); write!( f, - " [{}](https://github.com/rust-lang/rust-analyzer/blob/master/{}#{}) ", + " [{}](https://github.com/rust-lang/rust-analyzer/blob/master/{}#L{}) ", name.to_str().unwrap(), path, self.line