Method-ify CStore

This commit is contained in:
Steven Fackler
2013-12-25 13:08:04 -07:00
parent 4d5243dd08
commit c7cf5dc270
15 changed files with 185 additions and 202 deletions

View File

@@ -77,7 +77,7 @@ impl Clean<Crate> for visit_ast::RustdocVisitor {
let cx = local_data::get(super::ctxtkey, |x| *x.unwrap());
let mut externs = HashMap::new();
cstore::iter_crate_data(cx.sess.cstore, |n, meta| {
cx.sess.cstore.iter_crate_data(|n, meta| {
externs.insert(n, meta.clean());
});