diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2025-02-11 12:10:32 -0800 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2025-02-11 12:10:32 -0800 |
| commit | d695e33c8304241a7feb6a81707e4ee7bc371e09 (patch) | |
| tree | 6fa87586fe7f6248dc5805a0982817c54ce792a6 | |
| parent | da4c09937559e8d93cc6499ec8510a3571449061 (diff) | |
| download | rust-d695e33c8304241a7feb6a81707e4ee7bc371e09.tar.gz rust-d695e33c8304241a7feb6a81707e4ee7bc371e09.zip | |
manual: Fix URLs to rustdoc pages
Now that the manual lives at /manual/, we need to use absolute URLs to link to rustdoc content.
| -rw-r--r-- | src/tools/rust-analyzer/xtask/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/xtask/src/codegen.rs b/src/tools/rust-analyzer/xtask/src/codegen.rs index 18f49643dc7..e84c259e979 100644 --- a/src/tools/rust-analyzer/xtask/src/codegen.rs +++ b/src/tools/rust-analyzer/xtask/src/codegen.rs @@ -117,7 +117,7 @@ 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, " [{}](/{}#{}) ", name.to_str().unwrap(), path, self.line) } } |
