@@ -404,8 +404,7 @@ pub struct SectionIterator<'a>(InvariantOpaque<'a>);
404404extern { pub type Pass ; }
405405extern { pub type TargetMachine ; }
406406extern { pub type Archive ; }
407- extern { pub type ArchiveIterator ; }
408- pub type ArchiveIteratorRef = * mut ArchiveIterator ;
407+ pub struct ArchiveIterator < ' a > ( InvariantOpaque < ' a > ) ;
409408extern { pub type ArchiveChild ; }
410409pub type ArchiveChildRef = * mut ArchiveChild ;
411410extern { pub type Twine ; }
@@ -1471,12 +1470,12 @@ extern "C" {
14711470 pub fn LLVMRustMarkAllFunctionsNounwind ( M : & Module ) ;
14721471
14731472 pub fn LLVMRustOpenArchive ( path : * const c_char ) -> Option < & ' static mut Archive > ;
1474- pub fn LLVMRustArchiveIteratorNew ( AR : & Archive ) -> ArchiveIteratorRef ;
1475- pub fn LLVMRustArchiveIteratorNext ( AIR : ArchiveIteratorRef ) -> ArchiveChildRef ;
1473+ pub fn LLVMRustArchiveIteratorNew ( AR : & ' a Archive ) -> & ' a mut ArchiveIterator < ' a > ;
1474+ pub fn LLVMRustArchiveIteratorNext ( AIR : & ArchiveIterator ) -> ArchiveChildRef ;
14761475 pub fn LLVMRustArchiveChildName ( ACR : ArchiveChildRef , size : & mut size_t ) -> * const c_char ;
14771476 pub fn LLVMRustArchiveChildData ( ACR : ArchiveChildRef , size : & mut size_t ) -> * const c_char ;
14781477 pub fn LLVMRustArchiveChildFree ( ACR : ArchiveChildRef ) ;
1479- pub fn LLVMRustArchiveIteratorFree ( AIR : ArchiveIteratorRef ) ;
1478+ pub fn LLVMRustArchiveIteratorFree ( AIR : & ' a mut ArchiveIterator < ' a > ) ;
14801479 pub fn LLVMRustDestroyArchive ( AR : & ' static mut Archive ) ;
14811480
14821481 pub fn LLVMRustGetSectionName ( SI : & SectionIterator , data : & mut * const c_char ) -> size_t ;
0 commit comments