about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-04-27 17:14:29 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-04-27 17:14:29 +0200
commit74412d27074a0671fc68ea651f224a97d985e813 (patch)
tree93b679a5c57a4098911958ed30a908714f96648e
parent71d3dac4a86d192c2c80948621859da3b363fa50 (diff)
downloadrust-74412d27074a0671fc68ea651f224a97d985e813.tar.gz
rust-74412d27074a0671fc68ea651f224a97d985e813.zip
fix search load page failure
-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 {