1
Fork 0

Work around inability to link lifetime of ref bindings (#16994)

This commit is contained in:
Piotr Czarnecki 2014-09-05 01:24:04 +01:00
parent 27f87c611f
commit 0ad4644ae1
2 changed files with 5 additions and 3 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(),