Skip to content

Commit 8719b74

Browse files
Fix link generation for locate foreign macro in jump to definition feature
1 parent 53ed660 commit 8719b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ fn generate_macro_def_id_path(
575575
ExternalLocation::Local => {
576576
// `root_path` always end with a `/`.
577577
format!(
578-
"{root_path}{crate_name}/{path}",
578+
"{root_path}{path}",
579579
root_path = root_path.unwrap_or(""),
580580
path = path.iter().map(|p| p.as_str()).join("/")
581581
)

0 commit comments

Comments
 (0)