Skip to content

Commit 3d8a066

Browse files
Replace current crate's searchIndex when regenerating
1 parent 748d354 commit 3d8a066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ themePicker.onblur = handleThemeButtonsBlur;
964964
.collect::<Vec<_>>()
965965
.join(",")));
966966
}
967-
all_aliases.push(format!("ALIASES['{}'] = {{{}}};", krate.name, output));
967+
all_aliases.push(format!("ALIASES[\"{}\"] = {{{}}};", krate.name, output));
968968
all_aliases.sort();
969969
try_err!(writeln!(&mut w, "var ALIASES = {{}};"), &dst);
970970
for aliases in &all_aliases {
@@ -1038,7 +1038,7 @@ themePicker.onblur = handleThemeButtonsBlur;
10381038

10391039
let dst = cx.dst.join("source-files.js");
10401040
let (mut all_sources, _krates) = try_err!(collect(&dst, &krate.name, "sourcesIndex"), &dst);
1041-
all_sources.push(format!("sourcesIndex['{}'] = {};",
1041+
all_sources.push(format!("sourcesIndex[\"{}\"] = {};",
10421042
&krate.name,
10431043
hierarchy.to_json_string()));
10441044
all_sources.sort();

0 commit comments

Comments
 (0)