1
Fork 0

auto merge of #16628 : pczarn/rust/hashmap-opt, r=nikomatsakis

This is #15720, rebased and reopened.

cc @nikomatsakis
This commit is contained in:
bors 2014-09-05 17:36:25 +00:00
commit 82c052794d
9 changed files with 3800 additions and 3108 deletions

View file

@ -312,7 +312,7 @@ pub fn run(mut krate: clean::Crate, external_html: &ExternalHtml, dst: Path) ->
}).unwrap_or(HashMap::new());
let mut cache = Cache {
impls: HashMap::new(),
external_paths: paths.iter().map(|(&k, &(ref v, _))| (k, v.clone()))
external_paths: paths.iter().map(|(&k, v)| (k, v.ref0().clone()))
.collect(),
paths: paths,
implementors: HashMap::new(),