rustdoc: Fix json output and input

Turns out a hash map with integer keys isn't serializable to json.

Closes #10115
This commit is contained in:
Alex Crichton
2014-02-16 22:31:05 -08:00
parent 6db37bb147
commit 68d576fd34
5 changed files with 34 additions and 6 deletions

View File

@@ -305,7 +305,7 @@ pub fn run(mut krate: clean::Crate, dst: Path) -> io::IoResult<()> {
krate = folder.fold_crate(krate);
}
for (&n, e) in krate.externs.iter() {
for &(n, ref e) in krate.externs.iter() {
cache.extern_locations.insert(n, extern_location(e, &cx.dst));
}