From 3251d1caa70b98b1cd37c3c84f4138e9e8db6f32 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 11 Feb 2025 12:10:32 -0800 Subject: [PATCH] manual: Fix URLs to rustdoc pages Now that the manual lives at /manual/, we need to use absolute URLs to link to rustdoc content. --- xtask/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index 18f49643dc..e84c259e97 100644 --- a/xtask/src/codegen.rs +++ b/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) } }