about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-04-28 03:32:20 +0800
committerGitHub <noreply@github.com>2018-04-28 03:32:20 +0800
commite5983943fe896c564db441add38e6389c978aaef (patch)
tree324e5f70c989cd99e49713d150b48f14c24b5b0e /src
parent3f84ce2e0e46ead962303f3b8d7d2bd7ac683649 (diff)
parent74412d27074a0671fc68ea651f224a97d985e813 (diff)
downloadrust-e5983943fe896c564db441add38e6389c978aaef.tar.gz
rust-e5983943fe896c564db441add38e6389c978aaef.zip
Rollup merge of #50284 - GuillaumeGomez:search-load-failure, r=SimonSapin
fix search load page failure

Fixes #50283.

r? @QuietMisdreavus
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/layout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index fd54e9bd1e0..5e93b20ea17 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -146,9 +146,9 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
         window.rootPath = \"{root_path}\";\
         window.currentCrate = \"{krate}\";\
     </script>\
+    <script src=\"{root_path}aliases.js\"></script>\
     <script src=\"{root_path}main{suffix}.js\"></script>\
     <script defer src=\"{root_path}search-index.js\"></script>\
-    <script defer src=\"{root_path}aliases.js\"></script>\
 </body>\
 </html>",
     css_extension = if css_file_extension {