diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-13 15:25:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-16 09:44:33 -0700 |
| commit | 8fb31f75c95c52cfef40c6ffe2f1452c959ca5e4 (patch) | |
| tree | ae4a77128625aa008da5b569b3b641c88f73e97f /src/librustdoc/html/static | |
| parent | 0a46933c4d81573e78ce16cd215ba155a3114fce (diff) | |
| download | rust-8fb31f75c95c52cfef40c6ffe2f1452c959ca5e4.tar.gz rust-8fb31f75c95c52cfef40c6ffe2f1452c959ca5e4.zip | |
rustdoc: Fix cross-crate macro source links
The source filename for cross crate macros isn't quite right so the normal generated links are invalid. Closes #21311
Diffstat (limited to 'src/librustdoc/html/static')
| -rw-r--r-- | src/librustdoc/html/static/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index c3ab375a9e2..0379c04be4d 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -802,6 +802,9 @@ if (query['gotosrc']) { window.location = $('#src-' + query['gotosrc']).attr('href'); } + if (query['gotomacrosrc']) { + window.location = $('.srclink').attr('href'); + } $("#expand-all").on("click", function() { $(".docblock").show(); |
