]> git.lizzy.rs Git - rust.git/commitdiff
librustc: fix fallout
authorJorge Aparicio <japaricious@gmail.com>
Sat, 6 Dec 2014 22:55:55 +0000 (17:55 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sat, 13 Dec 2014 22:03:46 +0000 (17:03 -0500)
src/librustc/metadata/decoder.rs

index 898f5d2ef93ca2b4c8540d173ec69b271eab271a..2000c4e1abe9baed0afe4714276bb08bafec115b 100644 (file)
@@ -212,7 +212,9 @@ fn get_provided_source(d: rbml::Doc, cdata: Cmd) -> Option<ast::DefId> {
     })
 }
 
-fn each_reexport(d: rbml::Doc, f: |rbml::Doc| -> bool) -> bool {
+fn each_reexport<F>(d: rbml::Doc, f: F) -> bool where
+    F: FnMut(rbml::Doc) -> bool,
+{
     reader::tagged_docs(d, tag_items_data_item_reexport, f)
 }