mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Fix link generation for locate foreign macro in jump to definition feature
This commit is contained in:
parent
53ed660d47
commit
8719b74027
@ -575,7 +575,7 @@ fn generate_macro_def_id_path(
|
||||
ExternalLocation::Local => {
|
||||
// `root_path` always end with a `/`.
|
||||
format!(
|
||||
"{root_path}{crate_name}/{path}",
|
||||
"{root_path}{path}",
|
||||
root_path = root_path.unwrap_or(""),
|
||||
path = path.iter().map(|p| p.as_str()).join("/")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user