about summary refs log tree commit diff
path: root/src/tools/rustdoc-js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-05-12 14:57:52 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-05-12 19:16:37 +0200
commitf2bc09e68bfc5d84a7abf49bedb5ced8f99b95a7 (patch)
tree4fd89f92fe92fcdf5a87bf511bfad8e8b720dbc3 /src/tools/rustdoc-js
parent8fab482a68310da88ae72c1aef6edb19067949f1 (diff)
downloadrust-f2bc09e68bfc5d84a7abf49bedb5ced8f99b95a7.tar.gz
rust-f2bc09e68bfc5d84a7abf49bedb5ced8f99b95a7.zip
Fix invalid deduplication
Diffstat (limited to 'src/tools/rustdoc-js')
-rw-r--r--src/tools/rustdoc-js/tester.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/rustdoc-js/tester.js b/src/tools/rustdoc-js/tester.js
index 25f7a2d1294..47667d93cb7 100644
--- a/src/tools/rustdoc-js/tester.js
+++ b/src/tools/rustdoc-js/tester.js
@@ -160,10 +160,11 @@ function main(argv) {
     // execQuery first parameter is built in getQuery (which takes in the search input).
     // execQuery last parameter is built in buildIndex.
     // buildIndex requires the hashmap from search-index.
-    var functionsToLoad = ["levenshtein", "validateResult", "getQuery", "buildIndex", "execQuery",
-                           "execSearch"];
+    var functionsToLoad = ["buildHrefAndPath", "pathSplitter", "levenshtein", "validateResult",
+                           "getQuery", "buildIndex", "execQuery", "execSearch"];
 
     finalJS += 'window = { "currentCrate": "std" };\n';
+    finalJS += 'var rootPath = "../";\n';
     finalJS += ALIASES;
     finalJS += loadThings(arraysToLoad, 'array', extractArrayVariable, mainJs);
     finalJS += loadThings(variablesToLoad, 'variable', extractVariable, mainJs);