Skip to content

Commit

Permalink
Replace current crate's searchIndex when regenerating
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 18, 2018
1 parent 748d354 commit 3d8a066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ themePicker.onblur = handleThemeButtonsBlur;
.collect::<Vec<_>>()
.join(",")));
}
all_aliases.push(format!("ALIASES['{}'] = {{{}}};", krate.name, output));
all_aliases.push(format!("ALIASES[\"{}\"] = {{{}}};", krate.name, output));
all_aliases.sort();
try_err!(writeln!(&mut w, "var ALIASES = {{}};"), &dst);
for aliases in &all_aliases {
Expand Down Expand Up @@ -1038,7 +1038,7 @@ themePicker.onblur = handleThemeButtonsBlur;

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

0 comments on commit 3d8a066

Please sign in to comment.